Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hello_hello_proto protoreflect.FileDescriptor
View Source
var Hello_Desc = grpc.ServiceDesc{ ServiceName: "hello.HelloService", HandlerType: (*Hello_Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _Hello_Service_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/WisdomEnigma/micro-peers/hello/hello.proto", }
Functions ¶
func HelloCLientInit ¶
func HelloCLientInit()
func RegisterService ¶
func RegisterService(register grpc.ServiceRegistrar, sv Hello_Server)
Types ¶
type HelloClient ¶
type HelloClient struct { // grpc client connection state Client grpc.ClientConnInterface // grpc timeout connection Ctx context.Context }
func (*HelloClient) Hello ¶
func (c *HelloClient) Hello(resp *HelloRequest, callback ...grpc.CallOption) (*HelloResponse, error)
type HelloRequest ¶
type HelloRequest struct { Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetMessage ¶
func (x *HelloRequest) GetMessage() 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 { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetMessage ¶
func (x *HelloResponse) GetMessage() 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 Hello_Server ¶
type Hello_Server interface { Hello(resp *HelloRequest) (*HelloResponse, error) // contains filtered or unexported methods }
type Hello_Service ¶
type Hello_Service interface { // Hello Service is a service that will discover when connect with network mesh Hello(resp *HelloRequest, callback ...grpc.CallOption) (*HelloResponse, error) }
func NewClient ¶
func NewClient(ctx context.Context, client grpc.ClientConnInterface) Hello_Service
type UnSafeTaskService ¶
type UnSafeTaskService interface {
// contains filtered or unexported methods
}
type UnimplementedService ¶
type UnimplementedService struct{}
func (UnimplementedService) Hello ¶
func (UnimplementedService) Hello(resp *HelloRequest) (*HelloResponse, error)
Click to show internal directories.
Click to hide internal directories.