phello

package
v1.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPhello        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPhello          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPhello = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterHelloWorldServer

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

Types

type ApiReq added in v1.0.9

type ApiReq struct {
	Params map[string]string `` /* 153-byte string literal not displayed */
}

func (*ApiReq) Descriptor added in v1.0.9

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

func (*ApiReq) GetParams added in v1.0.9

func (m *ApiReq) GetParams() map[string]string

func (*ApiReq) Marshal added in v1.0.9

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

func (*ApiReq) MarshalTo added in v1.0.9

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

func (*ApiReq) MarshalToSizedBuffer added in v1.0.9

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

func (*ApiReq) ProtoMessage added in v1.0.9

func (*ApiReq) ProtoMessage()

func (*ApiReq) Reset added in v1.0.9

func (m *ApiReq) Reset()

func (*ApiReq) Size added in v1.0.9

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

func (*ApiReq) String added in v1.0.9

func (m *ApiReq) String() string

func (*ApiReq) Unmarshal added in v1.0.9

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

func (*ApiReq) XXX_DiscardUnknown added in v1.0.9

func (m *ApiReq) XXX_DiscardUnknown()

func (*ApiReq) XXX_Marshal added in v1.0.9

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

func (*ApiReq) XXX_Merge added in v1.0.9

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

func (*ApiReq) XXX_Size added in v1.0.9

func (m *ApiReq) XXX_Size() int

func (*ApiReq) XXX_Unmarshal added in v1.0.9

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

type ApiRsp added in v1.0.9

type ApiRsp struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*ApiRsp) Descriptor added in v1.0.9

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

func (*ApiRsp) GetCode added in v1.0.9

func (m *ApiRsp) GetCode() int32

func (*ApiRsp) GetMsg added in v1.0.9

func (m *ApiRsp) GetMsg() string

func (*ApiRsp) Marshal added in v1.0.9

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

func (*ApiRsp) MarshalTo added in v1.0.9

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

func (*ApiRsp) MarshalToSizedBuffer added in v1.0.9

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

func (*ApiRsp) ProtoMessage added in v1.0.9

func (*ApiRsp) ProtoMessage()

func (*ApiRsp) Reset added in v1.0.9

func (m *ApiRsp) Reset()

func (*ApiRsp) Size added in v1.0.9

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

func (*ApiRsp) String added in v1.0.9

func (m *ApiRsp) String() string

func (*ApiRsp) Unmarshal added in v1.0.9

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

func (*ApiRsp) XXX_DiscardUnknown added in v1.0.9

func (m *ApiRsp) XXX_DiscardUnknown()

func (*ApiRsp) XXX_Marshal added in v1.0.9

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

func (*ApiRsp) XXX_Merge added in v1.0.9

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

func (*ApiRsp) XXX_Size added in v1.0.9

func (m *ApiRsp) XXX_Size() int

func (*ApiRsp) XXX_Unmarshal added in v1.0.9

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

type HelloWorldClient

type HelloWorldClient interface {
	// requestResponse or fireAndForget.
	Say(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (*SayRsp, error)
	// get http request api
	SayGet(c *context.Context, req *ApiReq, opts ...invoke.InvokeOptions) (*ApiRsp, 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) (err error)
	// get http request api
	SayGet(c *context.Context, req *ApiReq, rsp *ApiRsp) (err error)
}

HelloWorldServer is the server API for HelloWorld server.

type SayReq

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

request params.

func (*SayReq) Descriptor

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

func (*SayReq) GetPing

func (m *SayReq) GetPing() 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 {
	Pong string `protobuf:"bytes,2,opt,name=pong,proto3" json:"pong,omitempty"`
}

response content.

func (*SayRsp) Descriptor

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

func (*SayRsp) GetPong

func (m *SayRsp) GetPong() 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