org_ump_grpc

package
v0.0.0-...-fdbc51e Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExampleServiceHandler

func RegisterExampleServiceHandler(s server.Server, hdlr ExampleServiceHandler, opts ...server.HandlerOption) error

func RegisterExampleServiceServer

func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)

Types

type ExampleEchoReq

type ExampleEchoReq struct {
	Data                 string   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" xml:"-" xorm:"-"`
	XXX_unrecognized     []byte   `json:"-" xml:"-" xorm:"-"`
	XXX_sizecache        int32    `json:"-" xml:"-" xorm:"-"`
}

func (*ExampleEchoReq) Descriptor

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

func (*ExampleEchoReq) GetData

func (m *ExampleEchoReq) GetData() string

func (*ExampleEchoReq) ProtoMessage

func (*ExampleEchoReq) ProtoMessage()

func (*ExampleEchoReq) Reset

func (m *ExampleEchoReq) Reset()

func (*ExampleEchoReq) String

func (m *ExampleEchoReq) String() string

func (*ExampleEchoReq) Validate

func (m *ExampleEchoReq) Validate() error

Validate checks the field values on ExampleEchoReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ExampleEchoReq) XXX_DiscardUnknown

func (m *ExampleEchoReq) XXX_DiscardUnknown()

func (*ExampleEchoReq) XXX_Marshal

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

func (*ExampleEchoReq) XXX_Merge

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

func (*ExampleEchoReq) XXX_Size

func (m *ExampleEchoReq) XXX_Size() int

func (*ExampleEchoReq) XXX_Unmarshal

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

type ExampleEchoReqValidationError

type ExampleEchoReqValidationError struct {
	// contains filtered or unexported fields
}

ExampleEchoReqValidationError is the validation error returned by ExampleEchoReq.Validate if the designated constraints aren't met.

func (ExampleEchoReqValidationError) Cause

Cause function returns cause value.

func (ExampleEchoReqValidationError) Error

Error satisfies the builtin error interface

func (ExampleEchoReqValidationError) ErrorName

func (e ExampleEchoReqValidationError) ErrorName() string

ErrorName returns error name.

func (ExampleEchoReqValidationError) Field

Field function returns field value.

func (ExampleEchoReqValidationError) Key

Key function returns key value.

func (ExampleEchoReqValidationError) Reason

Reason function returns reason value.

type ExampleEchoRsp

type ExampleEchoRsp struct {
	Data                 string   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" xml:"-" xorm:"-"`
	XXX_unrecognized     []byte   `json:"-" xml:"-" xorm:"-"`
	XXX_sizecache        int32    `json:"-" xml:"-" xorm:"-"`
}

func (*ExampleEchoRsp) Descriptor

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

func (*ExampleEchoRsp) GetData

func (m *ExampleEchoRsp) GetData() string

func (*ExampleEchoRsp) ProtoMessage

func (*ExampleEchoRsp) ProtoMessage()

func (*ExampleEchoRsp) Reset

func (m *ExampleEchoRsp) Reset()

func (*ExampleEchoRsp) String

func (m *ExampleEchoRsp) String() string

func (*ExampleEchoRsp) Validate

func (m *ExampleEchoRsp) Validate() error

Validate checks the field values on ExampleEchoRsp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ExampleEchoRsp) XXX_DiscardUnknown

func (m *ExampleEchoRsp) XXX_DiscardUnknown()

func (*ExampleEchoRsp) XXX_Marshal

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

func (*ExampleEchoRsp) XXX_Merge

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

func (*ExampleEchoRsp) XXX_Size

func (m *ExampleEchoRsp) XXX_Size() int

func (*ExampleEchoRsp) XXX_Unmarshal

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

type ExampleEchoRspValidationError

type ExampleEchoRspValidationError struct {
	// contains filtered or unexported fields
}

ExampleEchoRspValidationError is the validation error returned by ExampleEchoRsp.Validate if the designated constraints aren't met.

func (ExampleEchoRspValidationError) Cause

Cause function returns cause value.

func (ExampleEchoRspValidationError) Error

Error satisfies the builtin error interface

func (ExampleEchoRspValidationError) ErrorName

func (e ExampleEchoRspValidationError) ErrorName() string

ErrorName returns error name.

func (ExampleEchoRspValidationError) Field

Field function returns field value.

func (ExampleEchoRspValidationError) Key

Key function returns key value.

func (ExampleEchoRspValidationError) Reason

Reason function returns reason value.

type ExampleService

type ExampleService interface {
	Echo(ctx context.Context, in *ExampleEchoReq, opts ...client.CallOption) (*ExampleEchoRsp, error)
}

func NewExampleService

func NewExampleService(name string, c client.Client) ExampleService

type ExampleServiceClient

type ExampleServiceClient interface {
	Echo(ctx context.Context, in *ExampleEchoReq, opts ...grpc.CallOption) (*ExampleEchoRsp, error)
}

ExampleServiceClient is the client API for ExampleService service.

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

func NewExampleServiceClient

func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient

type ExampleServiceHandler

type ExampleServiceHandler interface {
	Echo(context.Context, *ExampleEchoReq, *ExampleEchoRsp) error
}

type ExampleServiceServer

type ExampleServiceServer interface {
	Echo(context.Context, *ExampleEchoReq) (*ExampleEchoRsp, error)
}

ExampleServiceServer is the server API for ExampleService service.

type UnimplementedExampleServiceServer

type UnimplementedExampleServiceServer struct {
}

UnimplementedExampleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedExampleServiceServer) Echo

Jump to

Keyboard shortcuts

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