proto

package
v0.0.0-...-23bf2d9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_proto protoreflect.FileDescriptor

Functions

func NewExampleSrvEndpoints

func NewExampleSrvEndpoints() []*api.Endpoint

NewExampleSrvEndpoints API Endpoints for ExampleSrv service

func RegisterExampleSrvHandler

func RegisterExampleSrvHandler(s server.Server, hdlr ExampleSrvHandler, opts ...server.HandlerOption) error

Types

type ExampleSrvHandler

ExampleSrvHandler is the server API for ExampleSrv service.

type ExampleSrvService

type ExampleSrvService interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...client.CallOption) (*HelloReply, error)
	HelloStreamRequestX(ctx context.Context, opts ...client.CallOption) (ExampleSrv_HelloStreamRequestXService, error)
	HelloStreamReplyX(ctx context.Context, in *HelloStreamRequest, opts ...client.CallOption) (ExampleSrv_HelloStreamReplyXService, error)
	HelloStreamRequestReply(ctx context.Context, opts ...client.CallOption) (ExampleSrv_HelloStreamRequestReplyService, error)
}

ExampleSrvService is the client API for ExampleSrv service.

func NewExampleSrvService

func NewExampleSrvService(name string, c client.Client) ExampleSrvService

type ExampleSrv_HelloStreamReplyXService

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

type ExampleSrv_HelloStreamReplyXStream

type ExampleSrv_HelloStreamReplyXStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*HelloStreamReply) error
}

type ExampleSrv_HelloStreamRequestReplyService

type ExampleSrv_HelloStreamRequestReplyService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*HelloStreamRequest) error
	Recv() (*HelloStreamReply, error)
}

type ExampleSrv_HelloStreamRequestReplyStream

type ExampleSrv_HelloStreamRequestReplyStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*HelloStreamReply) error
	Recv() (*HelloStreamRequest, error)
}

type ExampleSrv_HelloStreamRequestXService

type ExampleSrv_HelloStreamRequestXService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*HelloStreamRequest) error
}

type ExampleSrv_HelloStreamRequestXStream

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

type HelloReply

type HelloReply struct {
	Welcome string `protobuf:"bytes,1,opt,name=Welcome,proto3" json:"Welcome,omitempty"`
	Time    int64  `protobuf:"varint,2,opt,name=Time,proto3" json:"Time,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloReply) Descriptor deprecated

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

Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.

func (*HelloReply) GetTime

func (x *HelloReply) GetTime() int64

func (*HelloReply) GetWelcome

func (x *HelloReply) GetWelcome() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) ProtoReflect

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

func (*HelloReply) Reset

func (x *HelloReply) Reset()

func (*HelloReply) String

func (x *HelloReply) String() string

type HelloRequest

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

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetName

func (x *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

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

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type HelloStreamReply

type HelloStreamReply struct {
	Time    int64  `protobuf:"varint,1,opt,name=Time,proto3" json:"Time,omitempty"`
	Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloStreamReply) Descriptor deprecated

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

Deprecated: Use HelloStreamReply.ProtoReflect.Descriptor instead.

func (*HelloStreamReply) GetContent

func (x *HelloStreamReply) GetContent() string

func (*HelloStreamReply) GetTime

func (x *HelloStreamReply) GetTime() int64

func (*HelloStreamReply) ProtoMessage

func (*HelloStreamReply) ProtoMessage()

func (*HelloStreamReply) ProtoReflect

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

func (*HelloStreamReply) Reset

func (x *HelloStreamReply) Reset()

func (*HelloStreamReply) String

func (x *HelloStreamReply) String() string

type HelloStreamRequest

type HelloStreamRequest struct {
	Time    int64  `protobuf:"varint,1,opt,name=Time,proto3" json:"Time,omitempty"`
	Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloStreamRequest) Descriptor deprecated

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

Deprecated: Use HelloStreamRequest.ProtoReflect.Descriptor instead.

func (*HelloStreamRequest) GetContent

func (x *HelloStreamRequest) GetContent() string

func (*HelloStreamRequest) GetTime

func (x *HelloStreamRequest) GetTime() int64

func (*HelloStreamRequest) ProtoMessage

func (*HelloStreamRequest) ProtoMessage()

func (*HelloStreamRequest) ProtoReflect

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

func (*HelloStreamRequest) Reset

func (x *HelloStreamRequest) Reset()

func (*HelloStreamRequest) String

func (x *HelloStreamRequest) String() string

Jump to

Keyboard shortcuts

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