Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDomainTimeServiceServer(s grpc.ServiceRegistrar, srv DomainTimeServiceServer)
- type AwaitTimeRequest
- func (*AwaitTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AwaitTimeRequest) GetDomainId() *wrapperspb.StringValue
- func (x *AwaitTimeRequest) GetTimestamp() *timestamppb.Timestamp
- func (*AwaitTimeRequest) ProtoMessage()
- func (x *AwaitTimeRequest) ProtoReflect() protoreflect.Message
- func (x *AwaitTimeRequest) Reset()
- func (x *AwaitTimeRequest) String() string
- type AwaitTimeResponse
- type DomainTimeServiceClient
- type DomainTimeServiceServer
- type FetchTimeRequest
- func (*FetchTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchTimeRequest) GetDomainId() *wrapperspb.StringValue
- func (x *FetchTimeRequest) GetFreshnessBound() *durationpb.Duration
- func (*FetchTimeRequest) ProtoMessage()
- func (x *FetchTimeRequest) ProtoReflect() protoreflect.Message
- func (x *FetchTimeRequest) Reset()
- func (x *FetchTimeRequest) String() string
- type FetchTimeResponse
- func (*FetchTimeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchTimeResponse) GetTimestamp() *timestamppb.Timestamp
- func (*FetchTimeResponse) ProtoMessage()
- func (x *FetchTimeResponse) ProtoReflect() protoreflect.Message
- func (x *FetchTimeResponse) Reset()
- func (x *FetchTimeResponse) String() string
- type UnimplementedDomainTimeServiceServer
- type UnsafeDomainTimeServiceServer
Constants ¶
const ( DomainTimeService_FetchTime_FullMethodName = "/com.digitalasset.canton.time.admin.v30.DomainTimeService/FetchTime" DomainTimeService_AwaitTime_FullMethodName = "/com.digitalasset.canton.time.admin.v30.DomainTimeService/AwaitTime" )
Variables ¶
var DomainTimeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "com.digitalasset.canton.time.admin.v30.DomainTimeService", HandlerType: (*DomainTimeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchTime", Handler: _DomainTimeService_FetchTime_Handler, }, { MethodName: "AwaitTime", Handler: _DomainTimeService_AwaitTime_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "com/digitalasset/canton/time/admin/v30/domain_time_service.proto", }
DomainTimeService_ServiceDesc is the grpc.ServiceDesc for DomainTimeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_com_digitalasset_canton_time_admin_v30_domain_time_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDomainTimeServiceServer ¶
func RegisterDomainTimeServiceServer(s grpc.ServiceRegistrar, srv DomainTimeServiceServer)
Types ¶
type AwaitTimeRequest ¶
type AwaitTimeRequest struct { DomainId *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*AwaitTimeRequest) Descriptor
deprecated
func (*AwaitTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AwaitTimeRequest.ProtoReflect.Descriptor instead.
func (*AwaitTimeRequest) GetDomainId ¶
func (x *AwaitTimeRequest) GetDomainId() *wrapperspb.StringValue
func (*AwaitTimeRequest) GetTimestamp ¶
func (x *AwaitTimeRequest) GetTimestamp() *timestamppb.Timestamp
func (*AwaitTimeRequest) ProtoMessage ¶
func (*AwaitTimeRequest) ProtoMessage()
func (*AwaitTimeRequest) ProtoReflect ¶
func (x *AwaitTimeRequest) ProtoReflect() protoreflect.Message
func (*AwaitTimeRequest) Reset ¶
func (x *AwaitTimeRequest) Reset()
func (*AwaitTimeRequest) String ¶
func (x *AwaitTimeRequest) String() string
type AwaitTimeResponse ¶
type AwaitTimeResponse struct {
// contains filtered or unexported fields
}
func (*AwaitTimeResponse) Descriptor
deprecated
func (*AwaitTimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AwaitTimeResponse.ProtoReflect.Descriptor instead.
func (*AwaitTimeResponse) ProtoMessage ¶
func (*AwaitTimeResponse) ProtoMessage()
func (*AwaitTimeResponse) ProtoReflect ¶
func (x *AwaitTimeResponse) ProtoReflect() protoreflect.Message
func (*AwaitTimeResponse) Reset ¶
func (x *AwaitTimeResponse) Reset()
func (*AwaitTimeResponse) String ¶
func (x *AwaitTimeResponse) String() string
type DomainTimeServiceClient ¶
type DomainTimeServiceClient interface { FetchTime(ctx context.Context, in *FetchTimeRequest, opts ...grpc.CallOption) (*FetchTimeResponse, error) AwaitTime(ctx context.Context, in *AwaitTimeRequest, opts ...grpc.CallOption) (*AwaitTimeResponse, error) }
DomainTimeServiceClient is the client API for DomainTimeService 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 NewDomainTimeServiceClient ¶
func NewDomainTimeServiceClient(cc grpc.ClientConnInterface) DomainTimeServiceClient
type DomainTimeServiceServer ¶
type DomainTimeServiceServer interface { FetchTime(context.Context, *FetchTimeRequest) (*FetchTimeResponse, error) AwaitTime(context.Context, *AwaitTimeRequest) (*AwaitTimeResponse, error) // contains filtered or unexported methods }
DomainTimeServiceServer is the server API for DomainTimeService service. All implementations must embed UnimplementedDomainTimeServiceServer for forward compatibility.
type FetchTimeRequest ¶
type FetchTimeRequest struct { DomainId *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` FreshnessBound *durationpb.Duration `protobuf:"bytes,2,opt,name=freshness_bound,json=freshnessBound,proto3" json:"freshness_bound,omitempty"` // contains filtered or unexported fields }
func (*FetchTimeRequest) Descriptor
deprecated
func (*FetchTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchTimeRequest.ProtoReflect.Descriptor instead.
func (*FetchTimeRequest) GetDomainId ¶
func (x *FetchTimeRequest) GetDomainId() *wrapperspb.StringValue
func (*FetchTimeRequest) GetFreshnessBound ¶
func (x *FetchTimeRequest) GetFreshnessBound() *durationpb.Duration
func (*FetchTimeRequest) ProtoMessage ¶
func (*FetchTimeRequest) ProtoMessage()
func (*FetchTimeRequest) ProtoReflect ¶
func (x *FetchTimeRequest) ProtoReflect() protoreflect.Message
func (*FetchTimeRequest) Reset ¶
func (x *FetchTimeRequest) Reset()
func (*FetchTimeRequest) String ¶
func (x *FetchTimeRequest) String() string
type FetchTimeResponse ¶
type FetchTimeResponse struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*FetchTimeResponse) Descriptor
deprecated
func (*FetchTimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchTimeResponse.ProtoReflect.Descriptor instead.
func (*FetchTimeResponse) GetTimestamp ¶
func (x *FetchTimeResponse) GetTimestamp() *timestamppb.Timestamp
func (*FetchTimeResponse) ProtoMessage ¶
func (*FetchTimeResponse) ProtoMessage()
func (*FetchTimeResponse) ProtoReflect ¶
func (x *FetchTimeResponse) ProtoReflect() protoreflect.Message
func (*FetchTimeResponse) Reset ¶
func (x *FetchTimeResponse) Reset()
func (*FetchTimeResponse) String ¶
func (x *FetchTimeResponse) String() string
type UnimplementedDomainTimeServiceServer ¶
type UnimplementedDomainTimeServiceServer struct{}
UnimplementedDomainTimeServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDomainTimeServiceServer) AwaitTime ¶
func (UnimplementedDomainTimeServiceServer) AwaitTime(context.Context, *AwaitTimeRequest) (*AwaitTimeResponse, error)
func (UnimplementedDomainTimeServiceServer) FetchTime ¶
func (UnimplementedDomainTimeServiceServer) FetchTime(context.Context, *FetchTimeRequest) (*FetchTimeResponse, error)
type UnsafeDomainTimeServiceServer ¶
type UnsafeDomainTimeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDomainTimeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DomainTimeServiceServer will result in compilation errors.