demo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hello_proto protoreflect.FileDescriptor

Functions

func NewGreetClient

func NewGreetClient(name string, options ...core.CliOption) *greetClient

func NewGreetHandler

func NewGreetHandler() *greetHandler

Types

type Greet

type Greet interface {
	SayHello(context.Context, *SayHelloReq) (*SayHelloRes, error)
}

type NopGreetImpl

type NopGreetImpl struct{}

func (*NopGreetImpl) SayHello

func (_ *NopGreetImpl) SayHello(ctx context.Context, req *SayHelloReq) (*SayHelloRes, error)

type SayHelloReq

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

func (*SayHelloReq) Descriptor deprecated

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

Deprecated: Use SayHelloReq.ProtoReflect.Descriptor instead.

func (*SayHelloReq) GetName

func (x *SayHelloReq) GetName() string

func (*SayHelloReq) ProtoMessage

func (*SayHelloReq) ProtoMessage()

func (*SayHelloReq) ProtoReflect

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

func (*SayHelloReq) Reset

func (x *SayHelloReq) Reset()

func (*SayHelloReq) String

func (x *SayHelloReq) String() string

type SayHelloRes

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

func (*SayHelloRes) Descriptor deprecated

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

Deprecated: Use SayHelloRes.ProtoReflect.Descriptor instead.

func (*SayHelloRes) GetRelay

func (x *SayHelloRes) GetRelay() string

func (*SayHelloRes) ProtoMessage

func (*SayHelloRes) ProtoMessage()

func (*SayHelloRes) ProtoReflect

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

func (*SayHelloRes) Reset

func (x *SayHelloRes) Reset()

func (*SayHelloRes) String

func (x *SayHelloRes) String() string

Jump to

Keyboard shortcuts

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