hidot

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterHiDotServer

func RegisterHiDotServer(s *grpc.Server, srv HiDotServer)

Types

type HelloRequest

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

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetGreeting

func (x *HelloRequest) GetGreeting() 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 HelloResponse

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

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetReply

func (x *HelloResponse) GetReply() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

type HiDotClient

type HiDotClient interface {
	Hi(ctx context.Context, in *HiReq, opts ...grpc.CallOption) (*HiRes, error)
	Write(ctx context.Context, in *WriteReq, opts ...grpc.CallOption) (*WriteRes, error)
	ServerStream(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (HiDot_ServerStreamClient, error)
	ClientStream(ctx context.Context, opts ...grpc.CallOption) (HiDot_ClientStreamClient, error)
	BothSides(ctx context.Context, opts ...grpc.CallOption) (HiDot_BothSidesClient, error)
}

HiDotClient is the client API for HiDot service.

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

func NewHiDotClient

func NewHiDotClient(cc grpc.ClientConnInterface) HiDotClient

type HiDotServer

type HiDotServer interface {
	Hi(context.Context, *HiReq) (*HiRes, error)
	Write(context.Context, *WriteReq) (*WriteRes, error)
	ServerStream(*HelloRequest, HiDot_ServerStreamServer) error
	ClientStream(HiDot_ClientStreamServer) error
	BothSides(HiDot_BothSidesServer) error
}

HiDotServer is the server API for HiDot service.

type HiDot_BothSidesClient

type HiDot_BothSidesClient interface {
	Send(*HelloRequest) error
	Recv() (*HelloResponse, error)
	grpc.ClientStream
}

type HiDot_BothSidesServer

type HiDot_BothSidesServer interface {
	Send(*HelloResponse) error
	Recv() (*HelloRequest, error)
	grpc.ServerStream
}

type HiDot_ClientStreamClient

type HiDot_ClientStreamClient interface {
	Send(*HelloRequest) error
	CloseAndRecv() (*HelloResponse, error)
	grpc.ClientStream
}

type HiDot_ClientStreamServer

type HiDot_ClientStreamServer interface {
	SendAndClose(*HelloResponse) error
	Recv() (*HelloRequest, error)
	grpc.ServerStream
}

type HiDot_ServerStreamClient

type HiDot_ServerStreamClient interface {
	Recv() (*HelloResponse, error)
	grpc.ClientStream
}

type HiDot_ServerStreamServer

type HiDot_ServerStreamServer interface {
	Send(*HelloResponse) error
	grpc.ServerStream
}

type HiReq

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

func (*HiReq) Descriptor deprecated

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

Deprecated: Use HiReq.ProtoReflect.Descriptor instead.

func (*HiReq) GetName

func (x *HiReq) GetName() string

func (*HiReq) ProtoMessage

func (*HiReq) ProtoMessage()

func (*HiReq) ProtoReflect

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

func (*HiReq) Reset

func (x *HiReq) Reset()

func (*HiReq) String

func (x *HiReq) String() string

type HiRes

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

func (*HiRes) Descriptor deprecated

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

Deprecated: Use HiRes.ProtoReflect.Descriptor instead.

func (*HiRes) GetName

func (x *HiRes) GetName() string

func (*HiRes) ProtoMessage

func (*HiRes) ProtoMessage()

func (*HiRes) ProtoReflect

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

func (*HiRes) Reset

func (x *HiRes) Reset()

func (*HiRes) String

func (x *HiRes) String() string

type UnimplementedHiDotServer

type UnimplementedHiDotServer struct {
}

UnimplementedHiDotServer can be embedded to have forward compatible implementations.

func (*UnimplementedHiDotServer) BothSides

func (*UnimplementedHiDotServer) ClientStream

func (*UnimplementedHiDotServer) Hi

func (*UnimplementedHiDotServer) ServerStream

func (*UnimplementedHiDotServer) Write

type WriteReq

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

func (*WriteReq) Descriptor deprecated

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

Deprecated: Use WriteReq.ProtoReflect.Descriptor instead.

func (*WriteReq) GetData

func (x *WriteReq) GetData() string

func (*WriteReq) ProtoMessage

func (*WriteReq) ProtoMessage()

func (*WriteReq) ProtoReflect

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

func (*WriteReq) Reset

func (x *WriteReq) Reset()

func (*WriteReq) String

func (x *WriteReq) String() string

type WriteRes

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

func (*WriteRes) Descriptor deprecated

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

Deprecated: Use WriteRes.ProtoReflect.Descriptor instead.

func (*WriteRes) GetData

func (x *WriteRes) GetData() string

func (*WriteRes) ProtoMessage

func (*WriteRes) ProtoMessage()

func (*WriteRes) ProtoReflect

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

func (*WriteRes) Reset

func (x *WriteRes) Reset()

func (*WriteRes) String

func (x *WriteRes) String() string

Jump to

Keyboard shortcuts

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