hello

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHello        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHello          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHello = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterHelloWorldServer

func RegisterHelloWorldServer(s *server.Server, h HelloWorldServer)

Types

type HelloWorldClient

type HelloWorldClient interface {
	// requestResponse or fireAndForget.
	Say(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (*SayRsp, error)
	// requestStream.
	// SayReq is channel params.
	SayStream(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (chan *SayRsp, chan error)
	// requestChannel.
	// SayReq and SayRsp is channel.
	SayChannel(c *context.Context, req chan *SayReq, errIn chan error, opts ...invoke.InvokeOptions) (chan *SayRsp, chan error)
}

func NewHelloWorldClient

func NewHelloWorldClient(c *client.Client) HelloWorldClient

type HelloWorldServer

type HelloWorldServer interface {
	// requestResponse or fireAndForget.
	Say(c *context.Context, req *SayReq, rsp *SayRsp)
	// requestStream.
	// SayReq is channel params.
	SayStream(c *context.Context, req *SayReq) (chan *SayRsp, chan error)
	// requestChannel.
	// SayReq and SayRsp is channel.
	SayChannel(c *context.Context, req chan *SayReq, errIn chan error) (chan *SayRsp, chan error)
}

HelloWorldServer is the server API for HelloWorld server.

type SayReq

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

func (*SayReq) Descriptor

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

func (*SayReq) GetName

func (m *SayReq) GetName() string

func (*SayReq) Marshal

func (m *SayReq) Marshal() (dAtA []byte, err error)

func (*SayReq) MarshalTo

func (m *SayReq) MarshalTo(dAtA []byte) (int, error)

func (*SayReq) MarshalToSizedBuffer

func (m *SayReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SayReq) ProtoMessage

func (*SayReq) ProtoMessage()

func (*SayReq) Reset

func (m *SayReq) Reset()

func (*SayReq) Size

func (m *SayReq) Size() (n int)

func (*SayReq) String

func (m *SayReq) String() string

func (*SayReq) Unmarshal

func (m *SayReq) Unmarshal(dAtA []byte) error

func (*SayReq) XXX_DiscardUnknown

func (m *SayReq) XXX_DiscardUnknown()

func (*SayReq) XXX_Marshal

func (m *SayReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SayReq) XXX_Merge

func (m *SayReq) XXX_Merge(src proto.Message)

func (*SayReq) XXX_Size

func (m *SayReq) XXX_Size() int

func (*SayReq) XXX_Unmarshal

func (m *SayReq) XXX_Unmarshal(b []byte) error

type SayRsp

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

func (*SayRsp) Descriptor

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

func (*SayRsp) GetName

func (m *SayRsp) GetName() string

func (*SayRsp) Marshal

func (m *SayRsp) Marshal() (dAtA []byte, err error)

func (*SayRsp) MarshalTo

func (m *SayRsp) MarshalTo(dAtA []byte) (int, error)

func (*SayRsp) MarshalToSizedBuffer

func (m *SayRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SayRsp) ProtoMessage

func (*SayRsp) ProtoMessage()

func (*SayRsp) Reset

func (m *SayRsp) Reset()

func (*SayRsp) Size

func (m *SayRsp) Size() (n int)

func (*SayRsp) String

func (m *SayRsp) String() string

func (*SayRsp) Unmarshal

func (m *SayRsp) Unmarshal(dAtA []byte) error

func (*SayRsp) XXX_DiscardUnknown

func (m *SayRsp) XXX_DiscardUnknown()

func (*SayRsp) XXX_Marshal

func (m *SayRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SayRsp) XXX_Merge

func (m *SayRsp) XXX_Merge(src proto.Message)

func (*SayRsp) XXX_Size

func (m *SayRsp) XXX_Size() int

func (*SayRsp) XXX_Unmarshal

func (m *SayRsp) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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