Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_server_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFabulaService ¶
func RegisterFabulaService(s grpc.ServiceRegistrar, srv *FabulaService)
RegisterFabulaService registers a service implementation with a gRPC server.
Types ¶
type FabulaClient ¶
type FabulaClient interface {
Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error)
}
FabulaClient is the client API for Fabula 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 NewFabulaClient ¶
func NewFabulaClient(cc grpc.ClientConnInterface) FabulaClient
type FabulaService ¶
type FabulaService struct {
Time func(context.Context, *TimeRequest) (*TimeResponse, error)
}
FabulaService is the service API for Fabula service. Fields should be assigned to their respective handler implementations only before RegisterFabulaService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.
type TimeRequest ¶
type TimeRequest struct {
// contains filtered or unexported fields
}
func (*TimeRequest) Descriptor
deprecated
func (*TimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use TimeRequest.ProtoReflect.Descriptor instead.
func (*TimeRequest) ProtoMessage ¶
func (*TimeRequest) ProtoMessage()
func (*TimeRequest) ProtoReflect ¶
func (x *TimeRequest) ProtoReflect() protoreflect.Message
func (*TimeRequest) Reset ¶
func (x *TimeRequest) Reset()
func (*TimeRequest) String ¶
func (x *TimeRequest) String() string
type TimeResponse ¶
type TimeResponse struct { Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*TimeResponse) Descriptor
deprecated
func (*TimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use TimeResponse.ProtoReflect.Descriptor instead.
func (*TimeResponse) GetTimestamp ¶
func (x *TimeResponse) GetTimestamp() *timestamp.Timestamp
func (*TimeResponse) ProtoMessage ¶
func (*TimeResponse) ProtoMessage()
func (*TimeResponse) ProtoReflect ¶
func (x *TimeResponse) ProtoReflect() protoreflect.Message
func (*TimeResponse) Reset ¶
func (x *TimeResponse) Reset()
func (*TimeResponse) String ¶
func (x *TimeResponse) String() string