pb

package
v0.0.0-...-cb8cfd3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreeterHandler

func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts ...server.HandlerOption)

Types

type Greeter

type Greeter struct {
	GreeterHandler
}

func (*Greeter) Greeting

func (h *Greeter) Greeting(ctx context.Context, in *GreetingRequest, out *GreetingResponse) error

type GreeterClient

type GreeterClient interface {
	Greeting(ctx context.Context, in *GreetingRequest, opts ...client.CallOption) (*GreetingResponse, error)
}

func NewGreeterClient

func NewGreeterClient(serviceName string, c client.Client) GreeterClient

type GreeterHandler

type GreeterHandler interface {
	Greeting(context.Context, *GreetingRequest, *GreetingResponse) error
}

type GreetingRequest

type GreetingRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*GreetingRequest) Descriptor

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

func (*GreetingRequest) GetName

func (m *GreetingRequest) GetName() string

func (*GreetingRequest) ProtoMessage

func (*GreetingRequest) ProtoMessage()

func (*GreetingRequest) Reset

func (m *GreetingRequest) Reset()

func (*GreetingRequest) String

func (m *GreetingRequest) String() string

type GreetingResponse

type GreetingResponse struct {
	Greeting string `protobuf:"bytes,2,opt,name=greeting" json:"greeting,omitempty"`
}

func (*GreetingResponse) Descriptor

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

func (*GreetingResponse) GetGreeting

func (m *GreetingResponse) GetGreeting() string

func (*GreetingResponse) ProtoMessage

func (*GreetingResponse) ProtoMessage()

func (*GreetingResponse) Reset

func (m *GreetingResponse) Reset()

func (*GreetingResponse) String

func (m *GreetingResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL