echo

package
v0.0.0-...-c6615d0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppId = "echo"
)

Variables

View Source
var (
	ErrInvalidLengthCommon        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommon          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommon = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthEcho        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEcho          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEcho = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterEchoServer

func RegisterEchoServer(s *grpc.Server, srv EchoServer)

Types

type EchoClient

type EchoClient interface {
	Say(ctx context.Context, in *SayReq, opts ...grpc.CallOption) (*SayRes, error)
}

EchoClient is the client API for Echo service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEchoClient

func NewEchoClient(cc *grpc.ClientConn) EchoClient

type EchoServer

type EchoServer interface {
	Say(context.Context, *SayReq) (*SayRes, error)
}

EchoServer is the server API for Echo service.

type NullReq

type NullReq struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

空请求

func (*NullReq) Descriptor

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

func (*NullReq) Marshal

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

func (*NullReq) MarshalTo

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

func (*NullReq) MarshalToSizedBuffer

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

func (*NullReq) ProtoMessage

func (*NullReq) ProtoMessage()

func (*NullReq) Reset

func (m *NullReq) Reset()

func (*NullReq) Size

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

func (*NullReq) String

func (m *NullReq) String() string

func (*NullReq) Unmarshal

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

func (*NullReq) XXX_DiscardUnknown

func (m *NullReq) XXX_DiscardUnknown()

func (*NullReq) XXX_Marshal

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

func (*NullReq) XXX_Merge

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

func (*NullReq) XXX_Size

func (m *NullReq) XXX_Size() int

func (*NullReq) XXX_Unmarshal

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

type NullRes

type NullRes struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

空返回

func (*NullRes) Descriptor

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

func (*NullRes) Marshal

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

func (*NullRes) MarshalTo

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

func (*NullRes) MarshalToSizedBuffer

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

func (*NullRes) ProtoMessage

func (*NullRes) ProtoMessage()

func (*NullRes) Reset

func (m *NullRes) Reset()

func (*NullRes) Size

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

func (*NullRes) String

func (m *NullRes) String() string

func (*NullRes) Unmarshal

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

func (*NullRes) XXX_DiscardUnknown

func (m *NullRes) XXX_DiscardUnknown()

func (*NullRes) XXX_Marshal

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

func (*NullRes) XXX_Merge

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

func (*NullRes) XXX_Size

func (m *NullRes) XXX_Size() int

func (*NullRes) XXX_Unmarshal

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

type SayReq

type SayReq struct {
	Content              string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SayReq) Descriptor

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

func (*SayReq) GetContent

func (m *SayReq) GetContent() 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 SayRes

type SayRes struct {
	Content              string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SayRes) Descriptor

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

func (*SayRes) GetContent

func (m *SayRes) GetContent() string

func (*SayRes) Marshal

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

func (*SayRes) MarshalTo

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

func (*SayRes) MarshalToSizedBuffer

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

func (*SayRes) ProtoMessage

func (*SayRes) ProtoMessage()

func (*SayRes) Reset

func (m *SayRes) Reset()

func (*SayRes) Size

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

func (*SayRes) String

func (m *SayRes) String() string

func (*SayRes) Unmarshal

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

func (*SayRes) XXX_DiscardUnknown

func (m *SayRes) XXX_DiscardUnknown()

func (*SayRes) XXX_Marshal

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

func (*SayRes) XXX_Merge

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

func (*SayRes) XXX_Size

func (m *SayRes) XXX_Size() int

func (*SayRes) XXX_Unmarshal

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

type UnimplementedEchoServer

type UnimplementedEchoServer struct {
}

UnimplementedEchoServer can be embedded to have forward compatible implementations.

func (*UnimplementedEchoServer) Say

Jump to

Keyboard shortcuts

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