pbhello

package
v0.9.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPbhello        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPbhello          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPbhello = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterHelloWorldServer

func RegisterHelloWorldServer(s *roc.Service, h HelloWorldServer)

Types

type HelloWorldClient

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

func NewHelloWorldClient

func NewHelloWorldClient(c *roc.Service) HelloWorldClient

type HelloWorldServer

type HelloWorldServer interface {
	// requestResponse or fireAndForget.
	Say(c *context.Context, req *SayReq) (rsp *SayRsp, err error)
	// 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 service.

type SayReq

type SayReq struct {
	Inc uint32 `protobuf:"varint,1,opt,name=inc,proto3" json:"inc,omitempty"`
}

request params.

func (*SayReq) Descriptor

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

func (*SayReq) GetInc

func (m *SayReq) GetInc() uint32

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 {
	Inc uint32 `protobuf:"varint,1,opt,name=inc,proto3" json:"inc,omitempty"`
}

response content.

func (*SayRsp) Descriptor

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

func (*SayRsp) GetInc

func (m *SayRsp) GetInc() uint32

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