hash

package
v0.0.0-...-bdfe249 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashService_GetCurrentHash_FullMethodName = "/HashService/GetCurrentHash"
)

Variables

View Source
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.

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

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.

Jump to

Keyboard shortcuts

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