Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterHashServiceServer(s grpc.ServiceRegistrar, srv HashServiceServer)
- type HashRequest
- type HashResponse
- func (*HashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HashResponse) GetGenerationTime() string
- func (x *HashResponse) GetHash() string
- func (*HashResponse) ProtoMessage()
- func (x *HashResponse) ProtoReflect() protoreflect.Message
- func (x *HashResponse) Reset()
- func (x *HashResponse) String() string
- type HashServiceClient
- type HashServiceServer
- type UnimplementedHashServiceServer
- type UnsafeHashServiceServer
Constants ¶
const (
HashService_GetCurrentHash_FullMethodName = "/HashService/GetCurrentHash"
)
Variables ¶
var File_hash_proto protoreflect.FileDescriptor
var HashService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "HashService", HandlerType: (*HashServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCurrentHash", Handler: _HashService_GetCurrentHash_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hash.proto", }
HashService_ServiceDesc is the grpc.ServiceDesc for HashService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHashServiceServer ¶
func RegisterHashServiceServer(s grpc.ServiceRegistrar, srv HashServiceServer)
Types ¶
type HashRequest ¶
type HashRequest struct {
// contains filtered or unexported fields
}
func (*HashRequest) Descriptor
deprecated
func (*HashRequest) Descriptor() ([]byte, []int)
Deprecated: Use HashRequest.ProtoReflect.Descriptor instead.
func (*HashRequest) ProtoMessage ¶
func (*HashRequest) ProtoMessage()
func (*HashRequest) ProtoReflect ¶
func (x *HashRequest) ProtoReflect() protoreflect.Message
func (*HashRequest) Reset ¶
func (x *HashRequest) Reset()
func (*HashRequest) String ¶
func (x *HashRequest) String() string
type HashResponse ¶
type HashResponse struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` GenerationTime string `protobuf:"bytes,2,opt,name=generation_time,json=generationTime,proto3" json:"generation_time,omitempty"` // contains filtered or unexported fields }
func (*HashResponse) Descriptor
deprecated
func (*HashResponse) Descriptor() ([]byte, []int)
Deprecated: Use HashResponse.ProtoReflect.Descriptor instead.
func (*HashResponse) GetGenerationTime ¶
func (x *HashResponse) GetGenerationTime() string
func (*HashResponse) GetHash ¶
func (x *HashResponse) GetHash() string
func (*HashResponse) ProtoMessage ¶
func (*HashResponse) ProtoMessage()
func (*HashResponse) ProtoReflect ¶
func (x *HashResponse) ProtoReflect() protoreflect.Message
func (*HashResponse) Reset ¶
func (x *HashResponse) Reset()
func (*HashResponse) String ¶
func (x *HashResponse) String() string
type HashServiceClient ¶
type HashServiceClient interface {
GetCurrentHash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
}
HashServiceClient is the client API for HashService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHashServiceClient ¶
func NewHashServiceClient(cc grpc.ClientConnInterface) HashServiceClient
type HashServiceServer ¶
type HashServiceServer interface { GetCurrentHash(context.Context, *HashRequest) (*HashResponse, error) // contains filtered or unexported methods }
HashServiceServer is the server API for HashService service. All implementations must embed UnimplementedHashServiceServer for forward compatibility
type UnimplementedHashServiceServer ¶
type UnimplementedHashServiceServer struct { }
UnimplementedHashServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHashServiceServer) GetCurrentHash ¶
func (UnimplementedHashServiceServer) GetCurrentHash(context.Context, *HashRequest) (*HashResponse, error)
type UnsafeHashServiceServer ¶
type UnsafeHashServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHashServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HashServiceServer will result in compilation errors.