Documentation
¶
Index ¶
- Variables
- func RegisterControlServiceServer(s grpc.ServiceRegistrar, srv ControlServiceServer)
- type ControlServiceClient
- type ControlServiceServer
- type HealthCheckRequest
- func (*HealthCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckRequest) GetBody() *HealthCheckRequest_Body
- func (x *HealthCheckRequest) GetSignature() *Signature
- func (*HealthCheckRequest) ProtoMessage()
- func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
- func (x *HealthCheckRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *HealthCheckRequest) Reset()
- func (x *HealthCheckRequest) SetBody(v *HealthCheckRequest_Body)
- func (x *HealthCheckRequest) SetSignature(sig *Signature)
- func (x *HealthCheckRequest) SignedDataSize() int
- func (x *HealthCheckRequest) StableMarshal(buf []byte) []byte
- func (x *HealthCheckRequest) StableSize() (size int)
- func (x *HealthCheckRequest) String() string
- type HealthCheckRequest_Body
- func (*HealthCheckRequest_Body) Descriptor() ([]byte, []int)deprecated
- func (*HealthCheckRequest_Body) ProtoMessage()
- func (x *HealthCheckRequest_Body) ProtoReflect() protoreflect.Message
- func (x *HealthCheckRequest_Body) Reset()
- func (x *HealthCheckRequest_Body) StableMarshal(buf []byte) []byte
- func (x *HealthCheckRequest_Body) StableSize() (size int)
- func (x *HealthCheckRequest_Body) String() string
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetBody() *HealthCheckResponse_Body
- func (x *HealthCheckResponse) GetSignature() *Signature
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) SetBody(v *HealthCheckResponse_Body)
- func (x *HealthCheckResponse) SetSignature(sig *Signature)
- func (x *HealthCheckResponse) SignedDataSize() int
- func (x *HealthCheckResponse) StableMarshal(buf []byte) []byte
- func (x *HealthCheckResponse) StableSize() (size int)
- func (x *HealthCheckResponse) String() string
- type HealthCheckResponse_Body
- func (*HealthCheckResponse_Body) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse_Body) GetHealthStatus() HealthStatus
- func (*HealthCheckResponse_Body) ProtoMessage()
- func (x *HealthCheckResponse_Body) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse_Body) Reset()
- func (x *HealthCheckResponse_Body) SetHealthStatus(v HealthStatus)
- func (x *HealthCheckResponse_Body) StableMarshal(buf []byte) []byte
- func (x *HealthCheckResponse_Body) StableSize() (size int)
- func (x *HealthCheckResponse_Body) String() string
- type HealthStatus
- func (HealthStatus) Descriptor() protoreflect.EnumDescriptor
- func (x HealthStatus) Enum() *HealthStatus
- func (HealthStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthStatus) Number() protoreflect.EnumNumber
- func (x HealthStatus) String() string
- func (HealthStatus) Type() protoreflect.EnumType
- type NotaryListRequest
- func (*NotaryListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotaryListRequest) GetBody() *NotaryListRequest_Body
- func (x *NotaryListRequest) GetSignature() *Signature
- func (*NotaryListRequest) ProtoMessage()
- func (x *NotaryListRequest) ProtoReflect() protoreflect.Message
- func (x *NotaryListRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NotaryListRequest) Reset()
- func (x *NotaryListRequest) SetBody(v *NotaryListRequest_Body)
- func (x *NotaryListRequest) SetSignature(sig *Signature)
- func (x *NotaryListRequest) SignedDataSize() int
- func (x *NotaryListRequest) StableMarshal(buf []byte) []byte
- func (x *NotaryListRequest) StableSize() (size int)
- func (x *NotaryListRequest) String() string
- type NotaryListRequest_Body
- func (*NotaryListRequest_Body) Descriptor() ([]byte, []int)deprecated
- func (*NotaryListRequest_Body) ProtoMessage()
- func (x *NotaryListRequest_Body) ProtoReflect() protoreflect.Message
- func (x *NotaryListRequest_Body) Reset()
- func (x *NotaryListRequest_Body) StableMarshal(buf []byte) []byte
- func (x *NotaryListRequest_Body) StableSize() (size int)
- func (x *NotaryListRequest_Body) String() string
- type NotaryListResponse
- func (*NotaryListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotaryListResponse) GetBody() *NotaryListResponse_Body
- func (x *NotaryListResponse) GetSignature() *Signature
- func (*NotaryListResponse) ProtoMessage()
- func (x *NotaryListResponse) ProtoReflect() protoreflect.Message
- func (x *NotaryListResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NotaryListResponse) Reset()
- func (x *NotaryListResponse) SetBody(v *NotaryListResponse_Body)
- func (x *NotaryListResponse) SetSignature(sig *Signature)
- func (x *NotaryListResponse) SignedDataSize() int
- func (x *NotaryListResponse) StableMarshal(buf []byte) []byte
- func (x *NotaryListResponse) StableSize() (size int)
- func (x *NotaryListResponse) String() string
- type NotaryListResponse_Body
- func (*NotaryListResponse_Body) Descriptor() ([]byte, []int)deprecated
- func (x *NotaryListResponse_Body) GetTransactions() []*TransactionInfo
- func (*NotaryListResponse_Body) ProtoMessage()
- func (x *NotaryListResponse_Body) ProtoReflect() protoreflect.Message
- func (x *NotaryListResponse_Body) Reset()
- func (x *NotaryListResponse_Body) SetTransactions(v []*TransactionInfo)
- func (x *NotaryListResponse_Body) StableMarshal(buf []byte) []byte
- func (x *NotaryListResponse_Body) StableSize() (size int)
- func (x *NotaryListResponse_Body) String() string
- type NotaryRequestRequest
- func (*NotaryRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotaryRequestRequest) GetBody() *NotaryRequestRequest_Body
- func (x *NotaryRequestRequest) GetSignature() *Signature
- func (*NotaryRequestRequest) ProtoMessage()
- func (x *NotaryRequestRequest) ProtoReflect() protoreflect.Message
- func (x *NotaryRequestRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NotaryRequestRequest) Reset()
- func (x *NotaryRequestRequest) SetBody(v *NotaryRequestRequest_Body)
- func (x *NotaryRequestRequest) SetSignature(sig *Signature)
- func (x *NotaryRequestRequest) SignedDataSize() int
- func (x *NotaryRequestRequest) StableMarshal(buf []byte) []byte
- func (x *NotaryRequestRequest) StableSize() (size int)
- func (x *NotaryRequestRequest) String() string
- type NotaryRequestRequest_Body
- func (*NotaryRequestRequest_Body) Descriptor() ([]byte, []int)deprecated
- func (x *NotaryRequestRequest_Body) GetArgs() [][]byte
- func (x *NotaryRequestRequest_Body) GetMethod() string
- func (*NotaryRequestRequest_Body) ProtoMessage()
- func (x *NotaryRequestRequest_Body) ProtoReflect() protoreflect.Message
- func (x *NotaryRequestRequest_Body) Reset()
- func (x *NotaryRequestRequest_Body) SetArgs(v [][]byte)
- func (x *NotaryRequestRequest_Body) SetMethod(v string)
- func (x *NotaryRequestRequest_Body) StableMarshal(buf []byte) []byte
- func (x *NotaryRequestRequest_Body) StableSize() (size int)
- func (x *NotaryRequestRequest_Body) String() string
- type NotaryRequestResponse
- func (*NotaryRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotaryRequestResponse) GetBody() *NotaryRequestResponse_Body
- func (x *NotaryRequestResponse) GetSignature() *Signature
- func (*NotaryRequestResponse) ProtoMessage()
- func (x *NotaryRequestResponse) ProtoReflect() protoreflect.Message
- func (x *NotaryRequestResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NotaryRequestResponse) Reset()
- func (x *NotaryRequestResponse) SetBody(v *NotaryRequestResponse_Body)
- func (x *NotaryRequestResponse) SetSignature(sig *Signature)
- func (x *NotaryRequestResponse) SignedDataSize() int
- func (x *NotaryRequestResponse) StableMarshal(buf []byte) []byte
- func (x *NotaryRequestResponse) StableSize() (size int)
- func (x *NotaryRequestResponse) String() string
- type NotaryRequestResponse_Body
- func (*NotaryRequestResponse_Body) Descriptor() ([]byte, []int)deprecated
- func (x *NotaryRequestResponse_Body) GetHash() []byte
- func (*NotaryRequestResponse_Body) ProtoMessage()
- func (x *NotaryRequestResponse_Body) ProtoReflect() protoreflect.Message
- func (x *NotaryRequestResponse_Body) Reset()
- func (x *NotaryRequestResponse_Body) SetHash(v []byte)
- func (x *NotaryRequestResponse_Body) StableMarshal(buf []byte) []byte
- func (x *NotaryRequestResponse_Body) StableSize() (size int)
- func (x *NotaryRequestResponse_Body) String() string
- type NotarySignRequest
- func (*NotarySignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotarySignRequest) GetBody() *NotarySignRequest_Body
- func (x *NotarySignRequest) GetSignature() *Signature
- func (*NotarySignRequest) ProtoMessage()
- func (x *NotarySignRequest) ProtoReflect() protoreflect.Message
- func (x *NotarySignRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NotarySignRequest) Reset()
- func (x *NotarySignRequest) SetBody(v *NotarySignRequest_Body)
- func (x *NotarySignRequest) SetSignature(sig *Signature)
- func (x *NotarySignRequest) SignedDataSize() int
- func (x *NotarySignRequest) StableMarshal(buf []byte) []byte
- func (x *NotarySignRequest) StableSize() (size int)
- func (x *NotarySignRequest) String() string
- type NotarySignRequest_Body
- func (*NotarySignRequest_Body) Descriptor() ([]byte, []int)deprecated
- func (x *NotarySignRequest_Body) GetHash() []byte
- func (*NotarySignRequest_Body) ProtoMessage()
- func (x *NotarySignRequest_Body) ProtoReflect() protoreflect.Message
- func (x *NotarySignRequest_Body) Reset()
- func (x *NotarySignRequest_Body) SetHash(v []byte)
- func (x *NotarySignRequest_Body) StableMarshal(buf []byte) []byte
- func (x *NotarySignRequest_Body) StableSize() (size int)
- func (x *NotarySignRequest_Body) String() string
- type NotarySignResponse
- func (*NotarySignResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotarySignResponse) GetBody() *NotarySignResponse_Body
- func (x *NotarySignResponse) GetSignature() *Signature
- func (*NotarySignResponse) ProtoMessage()
- func (x *NotarySignResponse) ProtoReflect() protoreflect.Message
- func (x *NotarySignResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NotarySignResponse) Reset()
- func (x *NotarySignResponse) SetBody(v *NotarySignResponse_Body)
- func (x *NotarySignResponse) SetSignature(sig *Signature)
- func (x *NotarySignResponse) SignedDataSize() int
- func (x *NotarySignResponse) StableMarshal(buf []byte) []byte
- func (x *NotarySignResponse) StableSize() (size int)
- func (x *NotarySignResponse) String() string
- type NotarySignResponse_Body
- func (*NotarySignResponse_Body) Descriptor() ([]byte, []int)deprecated
- func (*NotarySignResponse_Body) ProtoMessage()
- func (x *NotarySignResponse_Body) ProtoReflect() protoreflect.Message
- func (x *NotarySignResponse_Body) Reset()
- func (x *NotarySignResponse_Body) StableMarshal(buf []byte) []byte
- func (x *NotarySignResponse_Body) StableSize() (size int)
- func (x *NotarySignResponse_Body) String() string
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)deprecated
- func (x *Signature) GetKey() []byte
- func (x *Signature) GetSign() []byte
- func (*Signature) ProtoMessage()
- func (x *Signature) ProtoReflect() protoreflect.Message
- func (x *Signature) Reset()
- func (x *Signature) SetKey(v []byte)
- func (x *Signature) SetSign(v []byte)
- func (x *Signature) StableMarshal(buf []byte) []byte
- func (x *Signature) StableSize() (size int)
- func (x *Signature) String() string
- type TransactionInfo
- func (*TransactionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionInfo) GetHash() []byte
- func (*TransactionInfo) ProtoMessage()
- func (x *TransactionInfo) ProtoReflect() protoreflect.Message
- func (x *TransactionInfo) Reset()
- func (x *TransactionInfo) StableMarshal(buf []byte) []byte
- func (x *TransactionInfo) StableSize() (size int)
- func (x *TransactionInfo) String() string
- type UnimplementedControlServiceServer
- func (UnimplementedControlServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
- func (UnimplementedControlServiceServer) NotaryList(context.Context, *NotaryListRequest) (*NotaryListResponse, error)
- func (UnimplementedControlServiceServer) NotaryRequest(context.Context, *NotaryRequestRequest) (*NotaryRequestResponse, error)
- func (UnimplementedControlServiceServer) NotarySign(context.Context, *NotarySignRequest) (*NotarySignResponse, error)
- type UnsafeControlServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( HealthStatus_name = map[int32]string{ 0: "HEALTH_STATUS_UNDEFINED", 1: "STARTING", 2: "READY", 3: "SHUTTING_DOWN", 4: "INITIALIZING_NETWORK", } HealthStatus_value = map[string]int32{ "HEALTH_STATUS_UNDEFINED": 0, "STARTING": 1, "READY": 2, "SHUTTING_DOWN": 3, "INITIALIZING_NETWORK": 4, } )
Enum value maps for HealthStatus.
var ControlService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ircontrol.ControlService", HandlerType: (*ControlServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HealthCheck", Handler: _ControlService_HealthCheck_Handler, }, { MethodName: "NotaryList", Handler: _ControlService_NotaryList_Handler, }, { MethodName: "NotaryRequest", Handler: _ControlService_NotaryRequest_Handler, }, { MethodName: "NotarySign", Handler: _ControlService_NotarySign_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/services/control/ir/service.proto", }
ControlService_ServiceDesc is the grpc.ServiceDesc for ControlService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_services_control_ir_service_proto protoreflect.FileDescriptor
var File_pkg_services_control_ir_types_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControlServiceServer ¶
func RegisterControlServiceServer(s grpc.ServiceRegistrar, srv ControlServiceServer)
Types ¶
type ControlServiceClient ¶
type ControlServiceClient interface {
// Performs health check of the IR node.
HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
// NotaryList list notary requests from the network.
NotaryList(ctx context.Context, in *NotaryListRequest, opts ...grpc.CallOption) (*NotaryListResponse, error)
// NotaryRequest create and send notary request to the network.
NotaryRequest(ctx context.Context, in *NotaryRequestRequest, opts ...grpc.CallOption) (*NotaryRequestResponse, error)
// NotarySign sign a notary request by it hash.
NotarySign(ctx context.Context, in *NotarySignRequest, opts ...grpc.CallOption) (*NotarySignResponse, error)
}
ControlServiceClient is the client API for ControlService 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 NewControlServiceClient ¶
func NewControlServiceClient(cc grpc.ClientConnInterface) ControlServiceClient
type ControlServiceServer ¶
type ControlServiceServer interface {
// Performs health check of the IR node.
HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
// NotaryList list notary requests from the network.
NotaryList(context.Context, *NotaryListRequest) (*NotaryListResponse, error)
// NotaryRequest create and send notary request to the network.
NotaryRequest(context.Context, *NotaryRequestRequest) (*NotaryRequestResponse, error)
// NotarySign sign a notary request by it hash.
NotarySign(context.Context, *NotarySignRequest) (*NotarySignResponse, error)
}
ControlServiceServer is the server API for ControlService service. All implementations should embed UnimplementedControlServiceServer for forward compatibility
type HealthCheckRequest ¶
type HealthCheckRequest struct {
// Body of health check request message.
Body *HealthCheckRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
// Should be signed by node key or one of
// the keys configured by the node.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
Health check request.
func (*HealthCheckRequest) Descriptor
deprecated
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest) GetBody ¶
func (x *HealthCheckRequest) GetBody() *HealthCheckRequest_Body
func (*HealthCheckRequest) GetSignature ¶
func (x *HealthCheckRequest) GetSignature() *Signature
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) ProtoReflect ¶
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
func (*HealthCheckRequest) ReadSignedData ¶
func (x *HealthCheckRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*HealthCheckRequest) Reset ¶
func (x *HealthCheckRequest) Reset()
func (*HealthCheckRequest) SetBody ¶
func (x *HealthCheckRequest) SetBody(v *HealthCheckRequest_Body)
SetBody sets health check request body.
func (*HealthCheckRequest) SetSignature ¶
func (x *HealthCheckRequest) SetSignature(sig *Signature)
func (*HealthCheckRequest) SignedDataSize ¶
func (x *HealthCheckRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*HealthCheckRequest) StableMarshal ¶ added in v0.29.0
func (x *HealthCheckRequest) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*HealthCheckRequest) StableSize ¶ added in v0.29.0
func (x *HealthCheckRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*HealthCheckRequest) String ¶
func (x *HealthCheckRequest) String() string
type HealthCheckRequest_Body ¶
type HealthCheckRequest_Body struct {
// contains filtered or unexported fields
}
Health check request body.
func (*HealthCheckRequest_Body) Descriptor
deprecated
func (*HealthCheckRequest_Body) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRequest_Body.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest_Body) ProtoMessage ¶
func (*HealthCheckRequest_Body) ProtoMessage()
func (*HealthCheckRequest_Body) ProtoReflect ¶
func (x *HealthCheckRequest_Body) ProtoReflect() protoreflect.Message
func (*HealthCheckRequest_Body) Reset ¶
func (x *HealthCheckRequest_Body) Reset()
func (*HealthCheckRequest_Body) StableMarshal ¶
func (x *HealthCheckRequest_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*HealthCheckRequest_Body) StableSize ¶
func (x *HealthCheckRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*HealthCheckRequest_Body) String ¶
func (x *HealthCheckRequest_Body) String() string
type HealthCheckResponse ¶
type HealthCheckResponse struct {
// Body of health check response message.
Body *HealthCheckResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
Health check response.
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetBody ¶
func (x *HealthCheckResponse) GetBody() *HealthCheckResponse_Body
func (*HealthCheckResponse) GetSignature ¶
func (x *HealthCheckResponse) GetSignature() *Signature
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) ReadSignedData ¶
func (x *HealthCheckResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) SetBody ¶
func (x *HealthCheckResponse) SetBody(v *HealthCheckResponse_Body)
SetBody sets health check response body.
func (*HealthCheckResponse) SetSignature ¶
func (x *HealthCheckResponse) SetSignature(sig *Signature)
func (*HealthCheckResponse) SignedDataSize ¶
func (x *HealthCheckResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*HealthCheckResponse) StableMarshal ¶ added in v0.29.0
func (x *HealthCheckResponse) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*HealthCheckResponse) StableSize ¶ added in v0.29.0
func (x *HealthCheckResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type HealthCheckResponse_Body ¶
type HealthCheckResponse_Body struct {
// Health status of IR node application.
HealthStatus HealthStatus `` /* 126-byte string literal not displayed */
// contains filtered or unexported fields
}
Health check response body
func (*HealthCheckResponse_Body) Descriptor
deprecated
func (*HealthCheckResponse_Body) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse_Body.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse_Body) GetHealthStatus ¶
func (x *HealthCheckResponse_Body) GetHealthStatus() HealthStatus
func (*HealthCheckResponse_Body) ProtoMessage ¶
func (*HealthCheckResponse_Body) ProtoMessage()
func (*HealthCheckResponse_Body) ProtoReflect ¶
func (x *HealthCheckResponse_Body) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse_Body) Reset ¶
func (x *HealthCheckResponse_Body) Reset()
func (*HealthCheckResponse_Body) SetHealthStatus ¶
func (x *HealthCheckResponse_Body) SetHealthStatus(v HealthStatus)
SetHealthStatus sets health status of the IR application.
func (*HealthCheckResponse_Body) StableMarshal ¶
func (x *HealthCheckResponse_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*HealthCheckResponse_Body) StableSize ¶
func (x *HealthCheckResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*HealthCheckResponse_Body) String ¶
func (x *HealthCheckResponse_Body) String() string
type HealthStatus ¶
type HealthStatus int32
Health status of the IR application.
const ( // Undefined status, default value. HealthStatus_HEALTH_STATUS_UNDEFINED HealthStatus = 0 // IR application is starting. HealthStatus_STARTING HealthStatus = 1 // IR application is started and serves all services. HealthStatus_READY HealthStatus = 2 // IR application is shutting down. HealthStatus_SHUTTING_DOWN HealthStatus = 3 // Initializing Neo network HealthStatus_INITIALIZING_NETWORK HealthStatus = 4 )
func (HealthStatus) Descriptor ¶
func (HealthStatus) Descriptor() protoreflect.EnumDescriptor
func (HealthStatus) Enum ¶
func (x HealthStatus) Enum() *HealthStatus
func (HealthStatus) EnumDescriptor
deprecated
func (HealthStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthStatus.Descriptor instead.
func (HealthStatus) Number ¶
func (x HealthStatus) Number() protoreflect.EnumNumber
func (HealthStatus) String ¶
func (x HealthStatus) String() string
func (HealthStatus) Type ¶
func (HealthStatus) Type() protoreflect.EnumType
type NotaryListRequest ¶ added in v0.45.0
type NotaryListRequest struct {
// Body of request message.
Body *NotaryListRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
NotaryList request.
func (*NotaryListRequest) Descriptor
deprecated
added in
v0.45.0
func (*NotaryListRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotaryListRequest.ProtoReflect.Descriptor instead.
func (*NotaryListRequest) GetBody ¶ added in v0.45.0
func (x *NotaryListRequest) GetBody() *NotaryListRequest_Body
func (*NotaryListRequest) GetSignature ¶ added in v0.45.0
func (x *NotaryListRequest) GetSignature() *Signature
func (*NotaryListRequest) ProtoMessage ¶ added in v0.45.0
func (*NotaryListRequest) ProtoMessage()
func (*NotaryListRequest) ProtoReflect ¶ added in v0.45.0
func (x *NotaryListRequest) ProtoReflect() protoreflect.Message
func (*NotaryListRequest) ReadSignedData ¶ added in v0.45.0
func (x *NotaryListRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NotaryListRequest) Reset ¶ added in v0.45.0
func (x *NotaryListRequest) Reset()
func (*NotaryListRequest) SetBody ¶ added in v0.45.0
func (x *NotaryListRequest) SetBody(v *NotaryListRequest_Body)
SetBody sets notary list request body.
func (*NotaryListRequest) SetSignature ¶ added in v0.45.0
func (x *NotaryListRequest) SetSignature(sig *Signature)
func (*NotaryListRequest) SignedDataSize ¶ added in v0.45.0
func (x *NotaryListRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NotaryListRequest) StableMarshal ¶ added in v0.45.0
func (x *NotaryListRequest) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryListRequest) StableSize ¶ added in v0.45.0
func (x *NotaryListRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryListRequest) String ¶ added in v0.45.0
func (x *NotaryListRequest) String() string
type NotaryListRequest_Body ¶ added in v0.45.0
type NotaryListRequest_Body struct {
// contains filtered or unexported fields
}
Request body structure.
func (*NotaryListRequest_Body) Descriptor
deprecated
added in
v0.45.0
func (*NotaryListRequest_Body) Descriptor() ([]byte, []int)
Deprecated: Use NotaryListRequest_Body.ProtoReflect.Descriptor instead.
func (*NotaryListRequest_Body) ProtoMessage ¶ added in v0.45.0
func (*NotaryListRequest_Body) ProtoMessage()
func (*NotaryListRequest_Body) ProtoReflect ¶ added in v0.45.0
func (x *NotaryListRequest_Body) ProtoReflect() protoreflect.Message
func (*NotaryListRequest_Body) Reset ¶ added in v0.45.0
func (x *NotaryListRequest_Body) Reset()
func (*NotaryListRequest_Body) StableMarshal ¶ added in v0.45.0
func (x *NotaryListRequest_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryListRequest_Body) StableSize ¶ added in v0.45.0
func (x *NotaryListRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryListRequest_Body) String ¶ added in v0.45.0
func (x *NotaryListRequest_Body) String() string
type NotaryListResponse ¶ added in v0.45.0
type NotaryListResponse struct {
// Body of request message.
Body *NotaryListResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
NotaryList response.
func (*NotaryListResponse) Descriptor
deprecated
added in
v0.45.0
func (*NotaryListResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotaryListResponse.ProtoReflect.Descriptor instead.
func (*NotaryListResponse) GetBody ¶ added in v0.45.0
func (x *NotaryListResponse) GetBody() *NotaryListResponse_Body
func (*NotaryListResponse) GetSignature ¶ added in v0.45.0
func (x *NotaryListResponse) GetSignature() *Signature
func (*NotaryListResponse) ProtoMessage ¶ added in v0.45.0
func (*NotaryListResponse) ProtoMessage()
func (*NotaryListResponse) ProtoReflect ¶ added in v0.45.0
func (x *NotaryListResponse) ProtoReflect() protoreflect.Message
func (*NotaryListResponse) ReadSignedData ¶ added in v0.45.0
func (x *NotaryListResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NotaryListResponse) Reset ¶ added in v0.45.0
func (x *NotaryListResponse) Reset()
func (*NotaryListResponse) SetBody ¶ added in v0.45.0
func (x *NotaryListResponse) SetBody(v *NotaryListResponse_Body)
SetBody sets network list response body.
func (*NotaryListResponse) SetSignature ¶ added in v0.45.0
func (x *NotaryListResponse) SetSignature(sig *Signature)
func (*NotaryListResponse) SignedDataSize ¶ added in v0.45.0
func (x *NotaryListResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NotaryListResponse) StableMarshal ¶ added in v0.45.0
func (x *NotaryListResponse) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryListResponse) StableSize ¶ added in v0.45.0
func (x *NotaryListResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryListResponse) String ¶ added in v0.45.0
func (x *NotaryListResponse) String() string
type NotaryListResponse_Body ¶ added in v0.45.0
type NotaryListResponse_Body struct {
// Transaction of the notary request.
Transactions []*TransactionInfo `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
// contains filtered or unexported fields
}
Request body structure.
func (*NotaryListResponse_Body) Descriptor
deprecated
added in
v0.45.0
func (*NotaryListResponse_Body) Descriptor() ([]byte, []int)
Deprecated: Use NotaryListResponse_Body.ProtoReflect.Descriptor instead.
func (*NotaryListResponse_Body) GetTransactions ¶ added in v0.45.0
func (x *NotaryListResponse_Body) GetTransactions() []*TransactionInfo
func (*NotaryListResponse_Body) ProtoMessage ¶ added in v0.45.0
func (*NotaryListResponse_Body) ProtoMessage()
func (*NotaryListResponse_Body) ProtoReflect ¶ added in v0.45.0
func (x *NotaryListResponse_Body) ProtoReflect() protoreflect.Message
func (*NotaryListResponse_Body) Reset ¶ added in v0.45.0
func (x *NotaryListResponse_Body) Reset()
func (*NotaryListResponse_Body) SetTransactions ¶ added in v0.45.0
func (x *NotaryListResponse_Body) SetTransactions(v []*TransactionInfo)
SetTransactions sets list of transactions of the IR notary requests.
func (*NotaryListResponse_Body) StableMarshal ¶ added in v0.45.0
func (x *NotaryListResponse_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryListResponse_Body) StableSize ¶ added in v0.45.0
func (x *NotaryListResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryListResponse_Body) String ¶ added in v0.45.0
func (x *NotaryListResponse_Body) String() string
type NotaryRequestRequest ¶ added in v0.45.0
type NotaryRequestRequest struct {
// Body of request message.
Body *NotaryRequestRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
NotaryRequest request.
func (*NotaryRequestRequest) Descriptor
deprecated
added in
v0.45.0
func (*NotaryRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotaryRequestRequest.ProtoReflect.Descriptor instead.
func (*NotaryRequestRequest) GetBody ¶ added in v0.45.0
func (x *NotaryRequestRequest) GetBody() *NotaryRequestRequest_Body
func (*NotaryRequestRequest) GetSignature ¶ added in v0.45.0
func (x *NotaryRequestRequest) GetSignature() *Signature
func (*NotaryRequestRequest) ProtoMessage ¶ added in v0.45.0
func (*NotaryRequestRequest) ProtoMessage()
func (*NotaryRequestRequest) ProtoReflect ¶ added in v0.45.0
func (x *NotaryRequestRequest) ProtoReflect() protoreflect.Message
func (*NotaryRequestRequest) ReadSignedData ¶ added in v0.45.0
func (x *NotaryRequestRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NotaryRequestRequest) Reset ¶ added in v0.45.0
func (x *NotaryRequestRequest) Reset()
func (*NotaryRequestRequest) SetBody ¶ added in v0.45.0
func (x *NotaryRequestRequest) SetBody(v *NotaryRequestRequest_Body)
SetBody sets notary request body.
func (*NotaryRequestRequest) SetSignature ¶ added in v0.45.0
func (x *NotaryRequestRequest) SetSignature(sig *Signature)
func (*NotaryRequestRequest) SignedDataSize ¶ added in v0.45.0
func (x *NotaryRequestRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NotaryRequestRequest) StableMarshal ¶ added in v0.45.0
func (x *NotaryRequestRequest) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryRequestRequest) StableSize ¶ added in v0.45.0
func (x *NotaryRequestRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryRequestRequest) String ¶ added in v0.45.0
func (x *NotaryRequestRequest) String() string
type NotaryRequestRequest_Body ¶ added in v0.45.0
type NotaryRequestRequest_Body struct {
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
Args [][]byte `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
// contains filtered or unexported fields
}
Request body structure.
func (*NotaryRequestRequest_Body) Descriptor
deprecated
added in
v0.45.0
func (*NotaryRequestRequest_Body) Descriptor() ([]byte, []int)
Deprecated: Use NotaryRequestRequest_Body.ProtoReflect.Descriptor instead.
func (*NotaryRequestRequest_Body) GetArgs ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) GetArgs() [][]byte
func (*NotaryRequestRequest_Body) GetMethod ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) GetMethod() string
func (*NotaryRequestRequest_Body) ProtoMessage ¶ added in v0.45.0
func (*NotaryRequestRequest_Body) ProtoMessage()
func (*NotaryRequestRequest_Body) ProtoReflect ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) ProtoReflect() protoreflect.Message
func (*NotaryRequestRequest_Body) Reset ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) Reset()
func (*NotaryRequestRequest_Body) SetArgs ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) SetArgs(v [][]byte)
SetArgs sets notary transaction args to request body.
func (*NotaryRequestRequest_Body) SetMethod ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) SetMethod(v string)
SetMethod sets notary transaction method to request body.
func (*NotaryRequestRequest_Body) StableMarshal ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryRequestRequest_Body) StableSize ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryRequestRequest_Body) String ¶ added in v0.45.0
func (x *NotaryRequestRequest_Body) String() string
type NotaryRequestResponse ¶ added in v0.45.0
type NotaryRequestResponse struct {
// Body of request message.
Body *NotaryRequestResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
NotaryRequest response.
func (*NotaryRequestResponse) Descriptor
deprecated
added in
v0.45.0
func (*NotaryRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotaryRequestResponse.ProtoReflect.Descriptor instead.
func (*NotaryRequestResponse) GetBody ¶ added in v0.45.0
func (x *NotaryRequestResponse) GetBody() *NotaryRequestResponse_Body
func (*NotaryRequestResponse) GetSignature ¶ added in v0.45.0
func (x *NotaryRequestResponse) GetSignature() *Signature
func (*NotaryRequestResponse) ProtoMessage ¶ added in v0.45.0
func (*NotaryRequestResponse) ProtoMessage()
func (*NotaryRequestResponse) ProtoReflect ¶ added in v0.45.0
func (x *NotaryRequestResponse) ProtoReflect() protoreflect.Message
func (*NotaryRequestResponse) ReadSignedData ¶ added in v0.45.0
func (x *NotaryRequestResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NotaryRequestResponse) Reset ¶ added in v0.45.0
func (x *NotaryRequestResponse) Reset()
func (*NotaryRequestResponse) SetBody ¶ added in v0.45.0
func (x *NotaryRequestResponse) SetBody(v *NotaryRequestResponse_Body)
SetBody sets network epoch tick response body.
func (*NotaryRequestResponse) SetSignature ¶ added in v0.45.0
func (x *NotaryRequestResponse) SetSignature(sig *Signature)
func (*NotaryRequestResponse) SignedDataSize ¶ added in v0.45.0
func (x *NotaryRequestResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NotaryRequestResponse) StableMarshal ¶ added in v0.45.0
func (x *NotaryRequestResponse) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryRequestResponse) StableSize ¶ added in v0.45.0
func (x *NotaryRequestResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryRequestResponse) String ¶ added in v0.45.0
func (x *NotaryRequestResponse) String() string
type NotaryRequestResponse_Body ¶ added in v0.45.0
type NotaryRequestResponse_Body struct {
// Result hash of transaction.
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
Request body structure.
func (*NotaryRequestResponse_Body) Descriptor
deprecated
added in
v0.45.0
func (*NotaryRequestResponse_Body) Descriptor() ([]byte, []int)
Deprecated: Use NotaryRequestResponse_Body.ProtoReflect.Descriptor instead.
func (*NotaryRequestResponse_Body) GetHash ¶ added in v0.45.0
func (x *NotaryRequestResponse_Body) GetHash() []byte
func (*NotaryRequestResponse_Body) ProtoMessage ¶ added in v0.45.0
func (*NotaryRequestResponse_Body) ProtoMessage()
func (*NotaryRequestResponse_Body) ProtoReflect ¶ added in v0.45.0
func (x *NotaryRequestResponse_Body) ProtoReflect() protoreflect.Message
func (*NotaryRequestResponse_Body) Reset ¶ added in v0.45.0
func (x *NotaryRequestResponse_Body) Reset()
func (*NotaryRequestResponse_Body) SetHash ¶ added in v0.45.0
func (x *NotaryRequestResponse_Body) SetHash(v []byte)
SetHash sets hash of the IR notary request.
func (*NotaryRequestResponse_Body) StableMarshal ¶ added in v0.45.0
func (x *NotaryRequestResponse_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotaryRequestResponse_Body) StableSize ¶ added in v0.45.0
func (x *NotaryRequestResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotaryRequestResponse_Body) String ¶ added in v0.45.0
func (x *NotaryRequestResponse_Body) String() string
type NotarySignRequest ¶ added in v0.45.0
type NotarySignRequest struct {
// Body of request message.
Body *NotarySignRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
NotarySign request.
func (*NotarySignRequest) Descriptor
deprecated
added in
v0.45.0
func (*NotarySignRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotarySignRequest.ProtoReflect.Descriptor instead.
func (*NotarySignRequest) GetBody ¶ added in v0.45.0
func (x *NotarySignRequest) GetBody() *NotarySignRequest_Body
func (*NotarySignRequest) GetSignature ¶ added in v0.45.0
func (x *NotarySignRequest) GetSignature() *Signature
func (*NotarySignRequest) ProtoMessage ¶ added in v0.45.0
func (*NotarySignRequest) ProtoMessage()
func (*NotarySignRequest) ProtoReflect ¶ added in v0.45.0
func (x *NotarySignRequest) ProtoReflect() protoreflect.Message
func (*NotarySignRequest) ReadSignedData ¶ added in v0.45.0
func (x *NotarySignRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NotarySignRequest) Reset ¶ added in v0.45.0
func (x *NotarySignRequest) Reset()
func (*NotarySignRequest) SetBody ¶ added in v0.45.0
func (x *NotarySignRequest) SetBody(v *NotarySignRequest_Body)
SetBody sets notary sign request body.
func (*NotarySignRequest) SetSignature ¶ added in v0.45.0
func (x *NotarySignRequest) SetSignature(sig *Signature)
func (*NotarySignRequest) SignedDataSize ¶ added in v0.45.0
func (x *NotarySignRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NotarySignRequest) StableMarshal ¶ added in v0.45.0
func (x *NotarySignRequest) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotarySignRequest) StableSize ¶ added in v0.45.0
func (x *NotarySignRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotarySignRequest) String ¶ added in v0.45.0
func (x *NotarySignRequest) String() string
type NotarySignRequest_Body ¶ added in v0.45.0
type NotarySignRequest_Body struct {
// Hash of transaction that need to be signed.
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
Request body structure.
func (*NotarySignRequest_Body) Descriptor
deprecated
added in
v0.45.0
func (*NotarySignRequest_Body) Descriptor() ([]byte, []int)
Deprecated: Use NotarySignRequest_Body.ProtoReflect.Descriptor instead.
func (*NotarySignRequest_Body) GetHash ¶ added in v0.45.0
func (x *NotarySignRequest_Body) GetHash() []byte
func (*NotarySignRequest_Body) ProtoMessage ¶ added in v0.45.0
func (*NotarySignRequest_Body) ProtoMessage()
func (*NotarySignRequest_Body) ProtoReflect ¶ added in v0.45.0
func (x *NotarySignRequest_Body) ProtoReflect() protoreflect.Message
func (*NotarySignRequest_Body) Reset ¶ added in v0.45.0
func (x *NotarySignRequest_Body) Reset()
func (*NotarySignRequest_Body) SetHash ¶ added in v0.45.0
func (x *NotarySignRequest_Body) SetHash(v []byte)
SetHash sets hash of the IR notary request to tick epoch.
func (*NotarySignRequest_Body) StableMarshal ¶ added in v0.45.0
func (x *NotarySignRequest_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotarySignRequest_Body) StableSize ¶ added in v0.45.0
func (x *NotarySignRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotarySignRequest_Body) String ¶ added in v0.45.0
func (x *NotarySignRequest_Body) String() string
type NotarySignResponse ¶ added in v0.45.0
type NotarySignResponse struct {
// Body of request message.
Body *NotarySignResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Body signature.
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
NotarySign response.
func (*NotarySignResponse) Descriptor
deprecated
added in
v0.45.0
func (*NotarySignResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotarySignResponse.ProtoReflect.Descriptor instead.
func (*NotarySignResponse) GetBody ¶ added in v0.45.0
func (x *NotarySignResponse) GetBody() *NotarySignResponse_Body
func (*NotarySignResponse) GetSignature ¶ added in v0.45.0
func (x *NotarySignResponse) GetSignature() *Signature
func (*NotarySignResponse) ProtoMessage ¶ added in v0.45.0
func (*NotarySignResponse) ProtoMessage()
func (*NotarySignResponse) ProtoReflect ¶ added in v0.45.0
func (x *NotarySignResponse) ProtoReflect() protoreflect.Message
func (*NotarySignResponse) ReadSignedData ¶ added in v0.45.0
func (x *NotarySignResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NotarySignResponse) Reset ¶ added in v0.45.0
func (x *NotarySignResponse) Reset()
func (*NotarySignResponse) SetBody ¶ added in v0.45.0
func (x *NotarySignResponse) SetBody(v *NotarySignResponse_Body)
SetBody sets notary sign response body.
func (*NotarySignResponse) SetSignature ¶ added in v0.45.0
func (x *NotarySignResponse) SetSignature(sig *Signature)
func (*NotarySignResponse) SignedDataSize ¶ added in v0.45.0
func (x *NotarySignResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NotarySignResponse) StableMarshal ¶ added in v0.45.0
func (x *NotarySignResponse) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotarySignResponse) StableSize ¶ added in v0.45.0
func (x *NotarySignResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotarySignResponse) String ¶ added in v0.45.0
func (x *NotarySignResponse) String() string
type NotarySignResponse_Body ¶ added in v0.45.0
type NotarySignResponse_Body struct {
// contains filtered or unexported fields
}
Request body structure.
func (*NotarySignResponse_Body) Descriptor
deprecated
added in
v0.45.0
func (*NotarySignResponse_Body) Descriptor() ([]byte, []int)
Deprecated: Use NotarySignResponse_Body.ProtoReflect.Descriptor instead.
func (*NotarySignResponse_Body) ProtoMessage ¶ added in v0.45.0
func (*NotarySignResponse_Body) ProtoMessage()
func (*NotarySignResponse_Body) ProtoReflect ¶ added in v0.45.0
func (x *NotarySignResponse_Body) ProtoReflect() protoreflect.Message
func (*NotarySignResponse_Body) Reset ¶ added in v0.45.0
func (x *NotarySignResponse_Body) Reset()
func (*NotarySignResponse_Body) StableMarshal ¶ added in v0.45.0
func (x *NotarySignResponse_Body) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*NotarySignResponse_Body) StableSize ¶ added in v0.45.0
func (x *NotarySignResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NotarySignResponse_Body) String ¶ added in v0.45.0
func (x *NotarySignResponse_Body) String() string
type Signature ¶
type Signature struct {
// Public key used for signing.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Binary signature.
Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
// contains filtered or unexported fields
}
Signature of some message.
func (*Signature) Descriptor
deprecated
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
func (*Signature) StableMarshal ¶ added in v0.29.0
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*Signature) StableSize ¶ added in v0.29.0
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
type TransactionInfo ¶ added in v0.45.0
type TransactionInfo struct {
// Hash of transaction.
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
Info about transaction.
func (*TransactionInfo) Descriptor
deprecated
added in
v0.45.0
func (*TransactionInfo) Descriptor() ([]byte, []int)
Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead.
func (*TransactionInfo) GetHash ¶ added in v0.45.0
func (x *TransactionInfo) GetHash() []byte
func (*TransactionInfo) ProtoMessage ¶ added in v0.45.0
func (*TransactionInfo) ProtoMessage()
func (*TransactionInfo) ProtoReflect ¶ added in v0.45.0
func (x *TransactionInfo) ProtoReflect() protoreflect.Message
func (*TransactionInfo) Reset ¶ added in v0.45.0
func (x *TransactionInfo) Reset()
func (*TransactionInfo) StableMarshal ¶ added in v0.45.0
func (x *TransactionInfo) StableMarshal(buf []byte) []byte
StableMarshal marshals x in protobuf binary format with stable field order.
If buffer length is less than x.StableSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same binary format.
func (*TransactionInfo) StableSize ¶ added in v0.45.0
func (x *TransactionInfo) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*TransactionInfo) String ¶ added in v0.45.0
func (x *TransactionInfo) String() string
type UnimplementedControlServiceServer ¶
type UnimplementedControlServiceServer struct {
}
UnimplementedControlServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedControlServiceServer) HealthCheck ¶
func (UnimplementedControlServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
func (UnimplementedControlServiceServer) NotaryList ¶ added in v0.45.0
func (UnimplementedControlServiceServer) NotaryList(context.Context, *NotaryListRequest) (*NotaryListResponse, error)
func (UnimplementedControlServiceServer) NotaryRequest ¶ added in v0.45.0
func (UnimplementedControlServiceServer) NotaryRequest(context.Context, *NotaryRequestRequest) (*NotaryRequestResponse, error)
func (UnimplementedControlServiceServer) NotarySign ¶ added in v0.45.0
func (UnimplementedControlServiceServer) NotarySign(context.Context, *NotarySignRequest) (*NotarySignResponse, error)
type UnsafeControlServiceServer ¶ added in v0.26.0
type UnsafeControlServiceServer interface {
// contains filtered or unexported methods
}
UnsafeControlServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControlServiceServer will result in compilation errors.