package example

import "github.com/containerd/ttrpc/example"

Package example demonstrates a lightweight protobuf service.

Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. source: github.com/containerd/ttrpc/example/example.proto

Index

Variables

var File_github_com_containerd_ttrpc_example_example_proto protoreflect.FileDescriptor

Functions

func RegisterExampleService

func RegisterExampleService(srv *ttrpc.Server, svc ExampleService)

Types

type ExampleService

type ExampleService interface {
	Method1(ctx context.Context, req *Method1Request) (*Method1Response, error)
	Method2(ctx context.Context, req *Method1Request) (*empty.Empty, error)
}

func NewExampleClient

func NewExampleClient(client *ttrpc.Client) ExampleService

type Method1Request

type Method1Request struct {
	Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	Bar string `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty"`
	// contains filtered or unexported fields
}

func (*Method1Request) Descriptor

func (*Method1Request) Descriptor() ([]byte, []int)

Deprecated: Use Method1Request.ProtoReflect.Descriptor instead.

func (*Method1Request) GetBar

func (x *Method1Request) GetBar() string

func (*Method1Request) GetFoo

func (x *Method1Request) GetFoo() string

func (*Method1Request) ProtoMessage

func (*Method1Request) ProtoMessage()

func (*Method1Request) ProtoReflect

func (x *Method1Request) ProtoReflect() protoreflect.Message

func (*Method1Request) Reset

func (x *Method1Request) Reset()

func (*Method1Request) String

func (x *Method1Request) String() string

type Method1Response

type Method1Response struct {
	Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	Bar string `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty"`
	// contains filtered or unexported fields
}

func (*Method1Response) Descriptor

func (*Method1Response) Descriptor() ([]byte, []int)

Deprecated: Use Method1Response.ProtoReflect.Descriptor instead.

func (*Method1Response) GetBar

func (x *Method1Response) GetBar() string

func (*Method1Response) GetFoo

func (x *Method1Response) GetFoo() string

func (*Method1Response) ProtoMessage

func (*Method1Response) ProtoMessage()

func (*Method1Response) ProtoReflect

func (x *Method1Response) ProtoReflect() protoreflect.Message

func (*Method1Response) Reset

func (x *Method1Response) Reset()

func (*Method1Response) String

func (x *Method1Response) String() string

type Method2Request

type Method2Request struct {
	Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*Method2Request) Descriptor

func (*Method2Request) Descriptor() ([]byte, []int)

Deprecated: Use Method2Request.ProtoReflect.Descriptor instead.

func (*Method2Request) GetAction

func (x *Method2Request) GetAction() string

func (*Method2Request) ProtoMessage

func (*Method2Request) ProtoMessage()

func (*Method2Request) ProtoReflect

func (x *Method2Request) ProtoReflect() protoreflect.Message

func (*Method2Request) Reset

func (x *Method2Request) Reset()

func (*Method2Request) String

func (x *Method2Request) String() string

Source Files

doc.go example.pb.go example_ttrpc.pb.go

Directories

PathSynopsis
example/cmd
Version
v1.2.7 (latest)
Published
Dec 28, 2024
Platform
js/wasm
Imports
7 packages
Last checked
1 month ago

Tools for package owners.