microv3

package
v0.0.0-...-5c71e94 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_idl_micro_v3_proto protoreflect.FileDescriptor

Functions

func NewMicroV3ServiceEndpoints

func NewMicroV3ServiceEndpoints() []*api.Endpoint

func RegisterMicroV3ServiceHandler

func RegisterMicroV3ServiceHandler(s server.Server, hdlr MicroV3ServiceHandler, opts ...server.HandlerOption) error

Types

type CallRequest

type CallRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CallRequest) Descriptor deprecated

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

Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.

func (*CallRequest) GetName

func (x *CallRequest) GetName() string

func (*CallRequest) ProtoMessage

func (*CallRequest) ProtoMessage()

func (*CallRequest) ProtoReflect

func (x *CallRequest) ProtoReflect() protoreflect.Message

func (*CallRequest) Reset

func (x *CallRequest) Reset()

func (*CallRequest) String

func (x *CallRequest) String() string

type CallResponse

type CallResponse struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*CallResponse) Descriptor deprecated

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

Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.

func (*CallResponse) GetMsg

func (x *CallResponse) GetMsg() string

func (*CallResponse) ProtoMessage

func (*CallResponse) ProtoMessage()

func (*CallResponse) ProtoReflect

func (x *CallResponse) ProtoReflect() protoreflect.Message

func (*CallResponse) Reset

func (x *CallResponse) Reset()

func (*CallResponse) String

func (x *CallResponse) String() string

type Message

type Message struct {
	Say string `protobuf:"bytes,1,opt,name=say,proto3" json:"say,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetSay

func (x *Message) GetSay() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type MicroV3Service

type MicroV3Service interface {
	Call(ctx context.Context, in *CallRequest, opts ...client.CallOption) (*CallResponse, error)
	Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (MicroV3Service_StreamService, error)
	PingPong(ctx context.Context, opts ...client.CallOption) (MicroV3Service_PingPongService, error)
}

func NewMicroV3Service

func NewMicroV3Service(name string, c client.Client) MicroV3Service

type MicroV3Service_PingPongService

type MicroV3Service_PingPongService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Ping) error
	Recv() (*Pong, error)
}

type MicroV3Service_PingPongStream

type MicroV3Service_PingPongStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Pong) error
	Recv() (*Ping, error)
}

type MicroV3Service_StreamService

type MicroV3Service_StreamService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*StreamingResponse, error)
}

type MicroV3Service_StreamStream

type MicroV3Service_StreamStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*StreamingResponse) error
}

type Ping

type Ping struct {
	Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"`
	// contains filtered or unexported fields
}

func (*Ping) Descriptor deprecated

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetStroke

func (x *Ping) GetStroke() int64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

func (x *Ping) ProtoReflect() protoreflect.Message

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type Pong

type Pong struct {
	Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"`
	// contains filtered or unexported fields
}

func (*Pong) Descriptor deprecated

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetStroke

func (x *Pong) GetStroke() int64

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

func (x *Pong) ProtoReflect() protoreflect.Message

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

type StreamingRequest

type StreamingRequest struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamingRequest) Descriptor deprecated

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

Deprecated: Use StreamingRequest.ProtoReflect.Descriptor instead.

func (*StreamingRequest) GetCount

func (x *StreamingRequest) GetCount() int64

func (*StreamingRequest) ProtoMessage

func (*StreamingRequest) ProtoMessage()

func (*StreamingRequest) ProtoReflect

func (x *StreamingRequest) ProtoReflect() protoreflect.Message

func (*StreamingRequest) Reset

func (x *StreamingRequest) Reset()

func (*StreamingRequest) String

func (x *StreamingRequest) String() string

type StreamingResponse

type StreamingResponse struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamingResponse) Descriptor deprecated

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

Deprecated: Use StreamingResponse.ProtoReflect.Descriptor instead.

func (*StreamingResponse) GetCount

func (x *StreamingResponse) GetCount() int64

func (*StreamingResponse) ProtoMessage

func (*StreamingResponse) ProtoMessage()

func (*StreamingResponse) ProtoReflect

func (x *StreamingResponse) ProtoReflect() protoreflect.Message

func (*StreamingResponse) Reset

func (x *StreamingResponse) Reset()

func (*StreamingResponse) String

func (x *StreamingResponse) String() string

Jump to

Keyboard shortcuts

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