v1

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterGreeterServer

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

Types

type GeeterReq

type GeeterReq struct {
	Uid                  int32    `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"required"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GeeterReq) Descriptor

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

func (*GeeterReq) GetUid

func (m *GeeterReq) GetUid() int32

func (*GeeterReq) Marshal

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

func (*GeeterReq) MarshalTo

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

func (*GeeterReq) ProtoMessage

func (*GeeterReq) ProtoMessage()

func (*GeeterReq) Reset

func (m *GeeterReq) Reset()

func (*GeeterReq) Size

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

func (*GeeterReq) String

func (m *GeeterReq) String() string

func (*GeeterReq) Unmarshal

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

func (*GeeterReq) XXX_DiscardUnknown

func (m *GeeterReq) XXX_DiscardUnknown()

func (*GeeterReq) XXX_Marshal

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

func (*GeeterReq) XXX_Merge

func (dst *GeeterReq) XXX_Merge(src proto.Message)

func (*GeeterReq) XXX_Size

func (m *GeeterReq) XXX_Size() int

func (*GeeterReq) XXX_Unmarshal

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

type GreeterClient

type GreeterClient interface {
	// `method:"POST" internal:"true"`
	SayHelloInternal(ctx context.Context, in *GeeterReq, opts ...grpc.CallOption) (*GreeterResp, error)
	SayHello(ctx context.Context, in *GeeterReq, opts ...grpc.CallOption) (*GreeterResp, error)
}

GreeterClient is the client API for Greeter service.

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

func NewGreeterClient

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterResp

type GreeterResp struct {
	Uid                  int32    `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GreeterResp) Descriptor

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

func (*GreeterResp) GetUid

func (m *GreeterResp) GetUid() int32

func (*GreeterResp) Marshal

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

func (*GreeterResp) MarshalTo

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

func (*GreeterResp) ProtoMessage

func (*GreeterResp) ProtoMessage()

func (*GreeterResp) Reset

func (m *GreeterResp) Reset()

func (*GreeterResp) Size

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

func (*GreeterResp) String

func (m *GreeterResp) String() string

func (*GreeterResp) Unmarshal

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

func (*GreeterResp) XXX_DiscardUnknown

func (m *GreeterResp) XXX_DiscardUnknown()

func (*GreeterResp) XXX_Marshal

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

func (*GreeterResp) XXX_Merge

func (dst *GreeterResp) XXX_Merge(src proto.Message)

func (*GreeterResp) XXX_Size

func (m *GreeterResp) XXX_Size() int

func (*GreeterResp) XXX_Unmarshal

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

type GreeterServer

type GreeterServer interface {
	// `method:"POST" internal:"true"`
	SayHelloInternal(context.Context, *GeeterReq) (*GreeterResp, error)
	SayHello(context.Context, *GeeterReq) (*GreeterResp, error)
}

GreeterServer is the server API for Greeter service.

Jump to

Keyboard shortcuts

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