Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
- func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type ControllerType
- func (ControllerType) Descriptor() protoreflect.EnumDescriptor
- func (x ControllerType) Enum() *ControllerType
- func (ControllerType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ControllerType) Number() protoreflect.EnumNumber
- func (x ControllerType) String() string
- func (ControllerType) Type() protoreflect.EnumType
- type DefaultSessionAcceptanceData
- func (*DefaultSessionAcceptanceData) Descriptor() ([]byte, []int)deprecated
- func (x *DefaultSessionAcceptanceData) GetRoot() string
- func (*DefaultSessionAcceptanceData) ProtoMessage()
- func (x *DefaultSessionAcceptanceData) ProtoReflect() protoreflect.Message
- func (x *DefaultSessionAcceptanceData) Reset()
- func (x *DefaultSessionAcceptanceData) String() string
- type DefaultSessionData
- func (*DefaultSessionData) Descriptor() ([]byte, []int)deprecated
- func (x *DefaultSessionData) GetAccepted() []string
- func (x *DefaultSessionData) GetIndexes() []string
- func (x *DefaultSessionData) GetParties() []string
- func (x *DefaultSessionData) GetProposer() string
- func (x *DefaultSessionData) GetRoot() string
- func (x *DefaultSessionData) GetSignature() string
- func (*DefaultSessionData) ProtoMessage()
- func (x *DefaultSessionData) ProtoReflect() protoreflect.Message
- func (x *DefaultSessionData) Reset()
- func (x *DefaultSessionData) String() string
- type DefaultSessionProposalData
- func (*DefaultSessionProposalData) Descriptor() ([]byte, []int)deprecated
- func (x *DefaultSessionProposalData) GetIndexes() []string
- func (x *DefaultSessionProposalData) GetRoot() string
- func (*DefaultSessionProposalData) ProtoMessage()
- func (x *DefaultSessionProposalData) ProtoReflect() protoreflect.Message
- func (x *DefaultSessionProposalData) Reset()
- func (x *DefaultSessionProposalData) String() string
- type KeygenSessionData
- func (*KeygenSessionData) Descriptor() ([]byte, []int)deprecated
- func (x *KeygenSessionData) GetKey() string
- func (x *KeygenSessionData) GetParties() []string
- func (*KeygenSessionData) ProtoMessage()
- func (x *KeygenSessionData) ProtoReflect() protoreflect.Message
- func (x *KeygenSessionData) Reset()
- func (x *KeygenSessionData) String() string
- type MsgAddOperationRequest
- func (*MsgAddOperationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MsgAddOperationRequest) GetIndex() string
- func (*MsgAddOperationRequest) ProtoMessage()
- func (x *MsgAddOperationRequest) ProtoReflect() protoreflect.Message
- func (x *MsgAddOperationRequest) Reset()
- func (x *MsgAddOperationRequest) String() string
- type MsgAddOperationResponse
- type MsgInfoRequest
- type MsgInfoResponse
- func (*MsgInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgInfoResponse) GetLocalAccount() string
- func (x *MsgInfoResponse) GetLocalPublicKey() string
- func (x *MsgInfoResponse) GetSessions() map[string]*Session
- func (*MsgInfoResponse) ProtoMessage()
- func (x *MsgInfoResponse) ProtoReflect() protoreflect.Message
- func (x *MsgInfoResponse) Reset()
- func (x *MsgInfoResponse) String() string
- type MsgSessionRequest
- func (*MsgSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSessionRequest) GetId() uint64
- func (x *MsgSessionRequest) GetSessionType() SessionType
- func (*MsgSessionRequest) ProtoMessage()
- func (x *MsgSessionRequest) ProtoReflect() protoreflect.Message
- func (x *MsgSessionRequest) Reset()
- func (x *MsgSessionRequest) String() string
- type MsgSessionResponse
- func (*MsgSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSessionResponse) GetData() *Session
- func (*MsgSessionResponse) ProtoMessage()
- func (x *MsgSessionResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSessionResponse) Reset()
- func (x *MsgSessionResponse) String() string
- type MsgSubmitRequest
- func (*MsgSubmitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSubmitRequest) GetData() *RequestData
- func (x *MsgSubmitRequest) GetSignature() string
- func (*MsgSubmitRequest) ProtoMessage()
- func (x *MsgSubmitRequest) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitRequest) Reset()
- func (x *MsgSubmitRequest) String() string
- type MsgSubmitResponse
- type RequestData
- func (*RequestData) Descriptor() ([]byte, []int)deprecated
- func (x *RequestData) GetDetails() *anypb.Any
- func (x *RequestData) GetId() uint64
- func (x *RequestData) GetIsBroadcast() bool
- func (x *RequestData) GetSessionType() SessionType
- func (x *RequestData) GetType() RequestType
- func (*RequestData) ProtoMessage()
- func (x *RequestData) ProtoReflect() protoreflect.Message
- func (x *RequestData) Reset()
- func (x *RequestData) String() string
- type RequestType
- func (RequestType) Descriptor() protoreflect.EnumDescriptor
- func (x RequestType) Enum() *RequestType
- func (RequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RequestType) Number() protoreflect.EnumNumber
- func (x RequestType) String() string
- func (RequestType) Type() protoreflect.EnumType
- type ReshareSessionAcceptanceData
- func (*ReshareSessionAcceptanceData) Descriptor() ([]byte, []int)deprecated
- func (x *ReshareSessionAcceptanceData) GetNew() *Set
- func (*ReshareSessionAcceptanceData) ProtoMessage()
- func (x *ReshareSessionAcceptanceData) ProtoReflect() protoreflect.Message
- func (x *ReshareSessionAcceptanceData) Reset()
- func (x *ReshareSessionAcceptanceData) String() string
- type ReshareSessionData
- func (*ReshareSessionData) Descriptor() ([]byte, []int)deprecated
- func (x *ReshareSessionData) GetKeySignature() string
- func (x *ReshareSessionData) GetNewKey() string
- func (x *ReshareSessionData) GetOldKey() string
- func (x *ReshareSessionData) GetParties() []string
- func (x *ReshareSessionData) GetProposer() string
- func (x *ReshareSessionData) GetRoot() string
- func (x *ReshareSessionData) GetSignature() string
- func (*ReshareSessionData) ProtoMessage()
- func (x *ReshareSessionData) ProtoReflect() protoreflect.Message
- func (x *ReshareSessionData) Reset()
- func (x *ReshareSessionData) String() string
- type ReshareSessionProposalData
- func (*ReshareSessionProposalData) Descriptor() ([]byte, []int)deprecated
- func (x *ReshareSessionProposalData) GetSet() *Set
- func (*ReshareSessionProposalData) ProtoMessage()
- func (x *ReshareSessionProposalData) ProtoReflect() protoreflect.Message
- func (x *ReshareSessionProposalData) Reset()
- func (x *ReshareSessionProposalData) String() string
- type ServiceClient
- type ServiceServer
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetData() *anypb.Any
- func (x *Session) GetEndBlock() uint64
- func (x *Session) GetId() uint64
- func (x *Session) GetStartBlock() uint64
- func (x *Session) GetStatus() SessionStatus
- func (x *Session) GetType() SessionType
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SessionStatus
- func (SessionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x SessionStatus) Enum() *SessionStatus
- func (SessionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x SessionStatus) Number() protoreflect.EnumNumber
- func (x SessionStatus) String() string
- func (SessionStatus) Type() protoreflect.EnumType
- type SessionType
- func (SessionType) Descriptor() protoreflect.EnumDescriptor
- func (x SessionType) Enum() *SessionType
- func (SessionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SessionType) Number() protoreflect.EnumNumber
- func (x SessionType) String() string
- func (SessionType) Type() protoreflect.EnumType
- type Set
- type SignRequest
- func (*SignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignRequest) GetData() string
- func (x *SignRequest) GetDetails() *anypb.Any
- func (*SignRequest) ProtoMessage()
- func (x *SignRequest) ProtoReflect() protoreflect.Message
- func (x *SignRequest) Reset()
- func (x *SignRequest) String() string
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddOperation(context.Context, *MsgAddOperationRequest) (*MsgAddOperationResponse, error)
- func (UnimplementedServiceServer) Info(context.Context, *MsgInfoRequest) (*MsgInfoResponse, error)
- func (UnimplementedServiceServer) Session(context.Context, *MsgSessionRequest) (*MsgSessionResponse, error)
- func (UnimplementedServiceServer) Submit(context.Context, *MsgSubmitRequest) (*MsgSubmitResponse, error)
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ControllerType_name = map[int32]string{ 0: "CONTROLLER_KEYGEN", 1: "CONTROLLER_PROPOSAL", 2: "CONTROLLER_RESHARE", 3: "CONTROLLER_ACCEPTANCE", 5: "CONTROLLER_SIGN", 6: "CONTROLLER_FINISH", } ControllerType_value = map[string]int32{ "CONTROLLER_KEYGEN": 0, "CONTROLLER_PROPOSAL": 1, "CONTROLLER_RESHARE": 2, "CONTROLLER_ACCEPTANCE": 3, "CONTROLLER_SIGN": 5, "CONTROLLER_FINISH": 6, } )
Enum value maps for ControllerType.
var ( RequestType_name = map[int32]string{ 0: "Proposal", 1: "Acceptance", 2: "Sign", 3: "Reshare", 4: "Keygen", } RequestType_value = map[string]int32{ "Proposal": 0, "Acceptance": 1, "Sign": 2, "Reshare": 3, "Keygen": 4, } )
Enum value maps for RequestType.
var ( SessionType_name = map[int32]string{ 0: "DefaultSession", 1: "ReshareSession", 2: "KeygenSession", } SessionType_value = map[string]int32{ "DefaultSession": 0, "ReshareSession": 1, "KeygenSession": 2, } )
Enum value maps for SessionType.
var ( SessionStatus_name = map[int32]string{ 0: "SessionProcessing", 1: "SessionFailed", 3: "SessionSucceeded", } SessionStatus_value = map[string]int32{ "SessionProcessing": 0, "SessionFailed": 1, "SessionSucceeded": 3, } )
Enum value maps for SessionStatus.
var File_controllers_proto protoreflect.FileDescriptor
var File_request_proto protoreflect.FileDescriptor
var File_service_proto protoreflect.FileDescriptor
var File_session_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Submit", Handler: _Service_Submit_Handler, }, { MethodName: "AddOperation", Handler: _Service_AddOperation_Handler, }, { MethodName: "Info", Handler: _Service_Info_Handler, }, { MethodName: "Session", Handler: _Service_Session_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHandler ¶
func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServiceHandler registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServiceHandlerClient ¶
func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
RegisterServiceHandlerClient registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceClient" to call the correct interceptors.
func RegisterServiceHandlerFromEndpoint ¶
func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServiceHandlerFromEndpoint is same as RegisterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServiceHandlerServer ¶
func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
RegisterServiceHandlerServer registers the http handlers for service Service to "mux". UnaryRPC :call ServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServiceHandlerFromEndpoint instead.
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type ControllerType ¶
type ControllerType int32
const ( ControllerType_CONTROLLER_KEYGEN ControllerType = 0 ControllerType_CONTROLLER_PROPOSAL ControllerType = 1 ControllerType_CONTROLLER_RESHARE ControllerType = 2 ControllerType_CONTROLLER_ACCEPTANCE ControllerType = 3 ControllerType_CONTROLLER_SIGN ControllerType = 5 ControllerType_CONTROLLER_FINISH ControllerType = 6 )
func (ControllerType) Descriptor ¶
func (ControllerType) Descriptor() protoreflect.EnumDescriptor
func (ControllerType) Enum ¶
func (x ControllerType) Enum() *ControllerType
func (ControllerType) EnumDescriptor
deprecated
func (ControllerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ControllerType.Descriptor instead.
func (ControllerType) Number ¶
func (x ControllerType) Number() protoreflect.EnumNumber
func (ControllerType) String ¶
func (x ControllerType) String() string
func (ControllerType) Type ¶
func (ControllerType) Type() protoreflect.EnumType
type DefaultSessionAcceptanceData ¶
type DefaultSessionAcceptanceData struct { Root string `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` // contains filtered or unexported fields }
func (*DefaultSessionAcceptanceData) Descriptor
deprecated
func (*DefaultSessionAcceptanceData) Descriptor() ([]byte, []int)
Deprecated: Use DefaultSessionAcceptanceData.ProtoReflect.Descriptor instead.
func (*DefaultSessionAcceptanceData) GetRoot ¶
func (x *DefaultSessionAcceptanceData) GetRoot() string
func (*DefaultSessionAcceptanceData) ProtoMessage ¶
func (*DefaultSessionAcceptanceData) ProtoMessage()
func (*DefaultSessionAcceptanceData) ProtoReflect ¶
func (x *DefaultSessionAcceptanceData) ProtoReflect() protoreflect.Message
func (*DefaultSessionAcceptanceData) Reset ¶
func (x *DefaultSessionAcceptanceData) Reset()
func (*DefaultSessionAcceptanceData) String ¶
func (x *DefaultSessionAcceptanceData) String() string
type DefaultSessionData ¶
type DefaultSessionData struct { Parties []string `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"` Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` Indexes []string `protobuf:"bytes,3,rep,name=indexes,proto3" json:"indexes,omitempty"` Root string `protobuf:"bytes,4,opt,name=root,proto3" json:"root,omitempty"` Accepted []string `protobuf:"bytes,5,rep,name=accepted,proto3" json:"accepted,omitempty"` Signature string `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*DefaultSessionData) Descriptor
deprecated
func (*DefaultSessionData) Descriptor() ([]byte, []int)
Deprecated: Use DefaultSessionData.ProtoReflect.Descriptor instead.
func (*DefaultSessionData) GetAccepted ¶
func (x *DefaultSessionData) GetAccepted() []string
func (*DefaultSessionData) GetIndexes ¶
func (x *DefaultSessionData) GetIndexes() []string
func (*DefaultSessionData) GetParties ¶
func (x *DefaultSessionData) GetParties() []string
func (*DefaultSessionData) GetProposer ¶
func (x *DefaultSessionData) GetProposer() string
func (*DefaultSessionData) GetRoot ¶
func (x *DefaultSessionData) GetRoot() string
func (*DefaultSessionData) GetSignature ¶
func (x *DefaultSessionData) GetSignature() string
func (*DefaultSessionData) ProtoMessage ¶
func (*DefaultSessionData) ProtoMessage()
func (*DefaultSessionData) ProtoReflect ¶
func (x *DefaultSessionData) ProtoReflect() protoreflect.Message
func (*DefaultSessionData) Reset ¶
func (x *DefaultSessionData) Reset()
func (*DefaultSessionData) String ¶
func (x *DefaultSessionData) String() string
type DefaultSessionProposalData ¶
type DefaultSessionProposalData struct { Indexes []string `protobuf:"bytes,2,rep,name=indexes,proto3" json:"indexes,omitempty"` Root string `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` // contains filtered or unexported fields }
func (*DefaultSessionProposalData) Descriptor
deprecated
func (*DefaultSessionProposalData) Descriptor() ([]byte, []int)
Deprecated: Use DefaultSessionProposalData.ProtoReflect.Descriptor instead.
func (*DefaultSessionProposalData) GetIndexes ¶
func (x *DefaultSessionProposalData) GetIndexes() []string
func (*DefaultSessionProposalData) GetRoot ¶
func (x *DefaultSessionProposalData) GetRoot() string
func (*DefaultSessionProposalData) ProtoMessage ¶
func (*DefaultSessionProposalData) ProtoMessage()
func (*DefaultSessionProposalData) ProtoReflect ¶
func (x *DefaultSessionProposalData) ProtoReflect() protoreflect.Message
func (*DefaultSessionProposalData) Reset ¶
func (x *DefaultSessionProposalData) Reset()
func (*DefaultSessionProposalData) String ¶
func (x *DefaultSessionProposalData) String() string
type KeygenSessionData ¶
type KeygenSessionData struct { Parties []string `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*KeygenSessionData) Descriptor
deprecated
func (*KeygenSessionData) Descriptor() ([]byte, []int)
Deprecated: Use KeygenSessionData.ProtoReflect.Descriptor instead.
func (*KeygenSessionData) GetKey ¶
func (x *KeygenSessionData) GetKey() string
func (*KeygenSessionData) GetParties ¶
func (x *KeygenSessionData) GetParties() []string
func (*KeygenSessionData) ProtoMessage ¶
func (*KeygenSessionData) ProtoMessage()
func (*KeygenSessionData) ProtoReflect ¶
func (x *KeygenSessionData) ProtoReflect() protoreflect.Message
func (*KeygenSessionData) Reset ¶
func (x *KeygenSessionData) Reset()
func (*KeygenSessionData) String ¶
func (x *KeygenSessionData) String() string
type MsgAddOperationRequest ¶
type MsgAddOperationRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*MsgAddOperationRequest) Descriptor
deprecated
func (*MsgAddOperationRequest) Descriptor() ([]byte, []int)
Deprecated: Use MsgAddOperationRequest.ProtoReflect.Descriptor instead.
func (*MsgAddOperationRequest) GetIndex ¶
func (x *MsgAddOperationRequest) GetIndex() string
func (*MsgAddOperationRequest) ProtoMessage ¶
func (*MsgAddOperationRequest) ProtoMessage()
func (*MsgAddOperationRequest) ProtoReflect ¶
func (x *MsgAddOperationRequest) ProtoReflect() protoreflect.Message
func (*MsgAddOperationRequest) Reset ¶
func (x *MsgAddOperationRequest) Reset()
func (*MsgAddOperationRequest) String ¶
func (x *MsgAddOperationRequest) String() string
type MsgAddOperationResponse ¶
type MsgAddOperationResponse struct {
// contains filtered or unexported fields
}
func (*MsgAddOperationResponse) Descriptor
deprecated
func (*MsgAddOperationResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgAddOperationResponse.ProtoReflect.Descriptor instead.
func (*MsgAddOperationResponse) ProtoMessage ¶
func (*MsgAddOperationResponse) ProtoMessage()
func (*MsgAddOperationResponse) ProtoReflect ¶
func (x *MsgAddOperationResponse) ProtoReflect() protoreflect.Message
func (*MsgAddOperationResponse) Reset ¶
func (x *MsgAddOperationResponse) Reset()
func (*MsgAddOperationResponse) String ¶
func (x *MsgAddOperationResponse) String() string
type MsgInfoRequest ¶
type MsgInfoRequest struct {
// contains filtered or unexported fields
}
func (*MsgInfoRequest) Descriptor
deprecated
func (*MsgInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use MsgInfoRequest.ProtoReflect.Descriptor instead.
func (*MsgInfoRequest) ProtoMessage ¶
func (*MsgInfoRequest) ProtoMessage()
func (*MsgInfoRequest) ProtoReflect ¶
func (x *MsgInfoRequest) ProtoReflect() protoreflect.Message
func (*MsgInfoRequest) Reset ¶
func (x *MsgInfoRequest) Reset()
func (*MsgInfoRequest) String ¶
func (x *MsgInfoRequest) String() string
type MsgInfoResponse ¶
type MsgInfoResponse struct { LocalAccount string `protobuf:"bytes,1,opt,name=localAccount,proto3" json:"localAccount,omitempty"` LocalPublicKey string `protobuf:"bytes,2,opt,name=localPublicKey,proto3" json:"localPublicKey,omitempty"` Sessions map[string]*Session `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MsgInfoResponse) Descriptor
deprecated
func (*MsgInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgInfoResponse.ProtoReflect.Descriptor instead.
func (*MsgInfoResponse) GetLocalAccount ¶
func (x *MsgInfoResponse) GetLocalAccount() string
func (*MsgInfoResponse) GetLocalPublicKey ¶
func (x *MsgInfoResponse) GetLocalPublicKey() string
func (*MsgInfoResponse) GetSessions ¶
func (x *MsgInfoResponse) GetSessions() map[string]*Session
func (*MsgInfoResponse) ProtoMessage ¶
func (*MsgInfoResponse) ProtoMessage()
func (*MsgInfoResponse) ProtoReflect ¶
func (x *MsgInfoResponse) ProtoReflect() protoreflect.Message
func (*MsgInfoResponse) Reset ¶
func (x *MsgInfoResponse) Reset()
func (*MsgInfoResponse) String ¶
func (x *MsgInfoResponse) String() string
type MsgSessionRequest ¶
type MsgSessionRequest struct { SessionType SessionType `protobuf:"varint,1,opt,name=sessionType,proto3,enum=SessionType" json:"sessionType,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MsgSessionRequest) Descriptor
deprecated
func (*MsgSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use MsgSessionRequest.ProtoReflect.Descriptor instead.
func (*MsgSessionRequest) GetId ¶
func (x *MsgSessionRequest) GetId() uint64
func (*MsgSessionRequest) GetSessionType ¶
func (x *MsgSessionRequest) GetSessionType() SessionType
func (*MsgSessionRequest) ProtoMessage ¶
func (*MsgSessionRequest) ProtoMessage()
func (*MsgSessionRequest) ProtoReflect ¶
func (x *MsgSessionRequest) ProtoReflect() protoreflect.Message
func (*MsgSessionRequest) Reset ¶
func (x *MsgSessionRequest) Reset()
func (*MsgSessionRequest) String ¶
func (x *MsgSessionRequest) String() string
type MsgSessionResponse ¶
type MsgSessionResponse struct { Data *Session `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*MsgSessionResponse) Descriptor
deprecated
func (*MsgSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSessionResponse.ProtoReflect.Descriptor instead.
func (*MsgSessionResponse) GetData ¶
func (x *MsgSessionResponse) GetData() *Session
func (*MsgSessionResponse) ProtoMessage ¶
func (*MsgSessionResponse) ProtoMessage()
func (*MsgSessionResponse) ProtoReflect ¶
func (x *MsgSessionResponse) ProtoReflect() protoreflect.Message
func (*MsgSessionResponse) Reset ¶
func (x *MsgSessionResponse) Reset()
func (*MsgSessionResponse) String ¶
func (x *MsgSessionResponse) String() string
type MsgSubmitRequest ¶
type MsgSubmitRequest struct { Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` Data *RequestData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*MsgSubmitRequest) Descriptor
deprecated
func (*MsgSubmitRequest) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitRequest.ProtoReflect.Descriptor instead.
func (*MsgSubmitRequest) GetData ¶
func (x *MsgSubmitRequest) GetData() *RequestData
func (*MsgSubmitRequest) GetSignature ¶
func (x *MsgSubmitRequest) GetSignature() string
func (*MsgSubmitRequest) ProtoMessage ¶
func (*MsgSubmitRequest) ProtoMessage()
func (*MsgSubmitRequest) ProtoReflect ¶
func (x *MsgSubmitRequest) ProtoReflect() protoreflect.Message
func (*MsgSubmitRequest) Reset ¶
func (x *MsgSubmitRequest) Reset()
func (*MsgSubmitRequest) String ¶
func (x *MsgSubmitRequest) String() string
type MsgSubmitResponse ¶
type MsgSubmitResponse struct {
// contains filtered or unexported fields
}
func (*MsgSubmitResponse) Descriptor
deprecated
func (*MsgSubmitResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitResponse.ProtoReflect.Descriptor instead.
func (*MsgSubmitResponse) ProtoMessage ¶
func (*MsgSubmitResponse) ProtoMessage()
func (*MsgSubmitResponse) ProtoReflect ¶
func (x *MsgSubmitResponse) ProtoReflect() protoreflect.Message
func (*MsgSubmitResponse) Reset ¶
func (x *MsgSubmitResponse) Reset()
func (*MsgSubmitResponse) String ¶
func (x *MsgSubmitResponse) String() string
type RequestData ¶
type RequestData struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` IsBroadcast bool `protobuf:"varint,2,opt,name=isBroadcast,proto3" json:"isBroadcast,omitempty"` SessionType SessionType `protobuf:"varint,3,opt,name=sessionType,proto3,enum=SessionType" json:"sessionType,omitempty"` Type RequestType `protobuf:"varint,4,opt,name=type,proto3,enum=RequestType" json:"type,omitempty"` Details *anypb.Any `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*RequestData) Descriptor
deprecated
func (*RequestData) Descriptor() ([]byte, []int)
Deprecated: Use RequestData.ProtoReflect.Descriptor instead.
func (*RequestData) GetDetails ¶
func (x *RequestData) GetDetails() *anypb.Any
func (*RequestData) GetId ¶
func (x *RequestData) GetId() uint64
func (*RequestData) GetIsBroadcast ¶
func (x *RequestData) GetIsBroadcast() bool
func (*RequestData) GetSessionType ¶
func (x *RequestData) GetSessionType() SessionType
func (*RequestData) GetType ¶
func (x *RequestData) GetType() RequestType
func (*RequestData) ProtoMessage ¶
func (*RequestData) ProtoMessage()
func (*RequestData) ProtoReflect ¶
func (x *RequestData) ProtoReflect() protoreflect.Message
func (*RequestData) Reset ¶
func (x *RequestData) Reset()
func (*RequestData) String ¶
func (x *RequestData) String() string
type RequestType ¶
type RequestType int32
const ( RequestType_Proposal RequestType = 0 RequestType_Acceptance RequestType = 1 RequestType_Sign RequestType = 2 RequestType_Keygen RequestType = 4 )
func (RequestType) Descriptor ¶
func (RequestType) Descriptor() protoreflect.EnumDescriptor
func (RequestType) Enum ¶
func (x RequestType) Enum() *RequestType
func (RequestType) EnumDescriptor
deprecated
func (RequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RequestType.Descriptor instead.
func (RequestType) Number ¶
func (x RequestType) Number() protoreflect.EnumNumber
func (RequestType) String ¶
func (x RequestType) String() string
func (RequestType) Type ¶
func (RequestType) Type() protoreflect.EnumType
type ReshareSessionAcceptanceData ¶
type ReshareSessionAcceptanceData struct { // contains filtered or unexported fields }
func (*ReshareSessionAcceptanceData) Descriptor
deprecated
func (*ReshareSessionAcceptanceData) Descriptor() ([]byte, []int)
Deprecated: Use ReshareSessionAcceptanceData.ProtoReflect.Descriptor instead.
func (*ReshareSessionAcceptanceData) GetNew ¶
func (x *ReshareSessionAcceptanceData) GetNew() *Set
func (*ReshareSessionAcceptanceData) ProtoMessage ¶
func (*ReshareSessionAcceptanceData) ProtoMessage()
func (*ReshareSessionAcceptanceData) ProtoReflect ¶
func (x *ReshareSessionAcceptanceData) ProtoReflect() protoreflect.Message
func (*ReshareSessionAcceptanceData) Reset ¶
func (x *ReshareSessionAcceptanceData) Reset()
func (*ReshareSessionAcceptanceData) String ¶
func (x *ReshareSessionAcceptanceData) String() string
type ReshareSessionData ¶
type ReshareSessionData struct { // contains filtered or unexported fields }
func (*ReshareSessionData) Descriptor
deprecated
func (*ReshareSessionData) Descriptor() ([]byte, []int)
Deprecated: Use ReshareSessionData.ProtoReflect.Descriptor instead.
func (*ReshareSessionData) GetKeySignature ¶
func (x *ReshareSessionData) GetKeySignature() string
func (*ReshareSessionData) GetNewKey ¶
func (x *ReshareSessionData) GetNewKey() string
func (*ReshareSessionData) GetOldKey ¶
func (x *ReshareSessionData) GetOldKey() string
func (*ReshareSessionData) GetParties ¶
func (x *ReshareSessionData) GetParties() []string
func (*ReshareSessionData) GetProposer ¶
func (x *ReshareSessionData) GetProposer() string
func (*ReshareSessionData) GetRoot ¶
func (x *ReshareSessionData) GetRoot() string
func (*ReshareSessionData) GetSignature ¶
func (x *ReshareSessionData) GetSignature() string
func (*ReshareSessionData) ProtoMessage ¶
func (*ReshareSessionData) ProtoMessage()
func (*ReshareSessionData) ProtoReflect ¶
func (x *ReshareSessionData) ProtoReflect() protoreflect.Message
func (*ReshareSessionData) Reset ¶
func (x *ReshareSessionData) Reset()
func (*ReshareSessionData) String ¶
func (x *ReshareSessionData) String() string
type ReshareSessionProposalData ¶
type ReshareSessionProposalData struct { // contains filtered or unexported fields }
func (*ReshareSessionProposalData) Descriptor
deprecated
func (*ReshareSessionProposalData) Descriptor() ([]byte, []int)
Deprecated: Use ReshareSessionProposalData.ProtoReflect.Descriptor instead.
func (*ReshareSessionProposalData) GetSet ¶
func (x *ReshareSessionProposalData) GetSet() *Set
func (*ReshareSessionProposalData) ProtoMessage ¶
func (*ReshareSessionProposalData) ProtoMessage()
func (*ReshareSessionProposalData) ProtoReflect ¶
func (x *ReshareSessionProposalData) ProtoReflect() protoreflect.Message
func (*ReshareSessionProposalData) Reset ¶
func (x *ReshareSessionProposalData) Reset()
func (*ReshareSessionProposalData) String ¶
func (x *ReshareSessionProposalData) String() string
type ServiceClient ¶
type ServiceClient interface { Submit(ctx context.Context, in *MsgSubmitRequest, opts ...grpc.CallOption) (*MsgSubmitResponse, error) AddOperation(ctx context.Context, in *MsgAddOperationRequest, opts ...grpc.CallOption) (*MsgAddOperationResponse, error) Info(ctx context.Context, in *MsgInfoRequest, opts ...grpc.CallOption) (*MsgInfoResponse, error) Session(ctx context.Context, in *MsgSessionRequest, opts ...grpc.CallOption) (*MsgSessionResponse, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { Submit(context.Context, *MsgSubmitRequest) (*MsgSubmitResponse, error) AddOperation(context.Context, *MsgAddOperationRequest) (*MsgAddOperationResponse, error) Info(context.Context, *MsgInfoRequest) (*MsgInfoResponse, error) Session(context.Context, *MsgSessionRequest) (*MsgSessionResponse, error) }
ServiceServer is the server API for Service service. All implementations should embed UnimplementedServiceServer for forward compatibility
type Session ¶
type Session struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Status SessionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=SessionStatus" json:"status,omitempty"` StartBlock uint64 `protobuf:"varint,3,opt,name=startBlock,proto3" json:"startBlock,omitempty"` EndBlock uint64 `protobuf:"varint,4,opt,name=endBlock,proto3" json:"endBlock,omitempty"` Type SessionType `protobuf:"varint,5,opt,name=type,proto3,enum=SessionType" json:"type,omitempty"` Data *anypb.Any `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) GetEndBlock ¶
func (*Session) GetStartBlock ¶
func (*Session) GetStatus ¶
func (x *Session) GetStatus() SessionStatus
func (*Session) GetType ¶
func (x *Session) GetType() SessionType
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SessionStatus ¶
type SessionStatus int32
const ( SessionStatus_SessionProcessing SessionStatus = 0 SessionStatus_SessionFailed SessionStatus = 1 SessionStatus_SessionSucceeded SessionStatus = 3 )
func (SessionStatus) Descriptor ¶
func (SessionStatus) Descriptor() protoreflect.EnumDescriptor
func (SessionStatus) Enum ¶
func (x SessionStatus) Enum() *SessionStatus
func (SessionStatus) EnumDescriptor
deprecated
func (SessionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SessionStatus.Descriptor instead.
func (SessionStatus) Number ¶
func (x SessionStatus) Number() protoreflect.EnumNumber
func (SessionStatus) String ¶
func (x SessionStatus) String() string
func (SessionStatus) Type ¶
func (SessionStatus) Type() protoreflect.EnumType
type SessionType ¶
type SessionType int32
const ( SessionType_DefaultSession SessionType = 0 SessionType_KeygenSession SessionType = 2 )
func (SessionType) Descriptor ¶
func (SessionType) Descriptor() protoreflect.EnumDescriptor
func (SessionType) Enum ¶
func (x SessionType) Enum() *SessionType
func (SessionType) EnumDescriptor
deprecated
func (SessionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SessionType.Descriptor instead.
func (SessionType) Number ¶
func (x SessionType) Number() protoreflect.EnumNumber
func (SessionType) String ¶
func (x SessionType) String() string
func (SessionType) Type ¶
func (SessionType) Type() protoreflect.EnumType
type Set ¶
type Set struct { Parties []string `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"` N uint32 `protobuf:"varint,2,opt,name=n,proto3" json:"n,omitempty"` T uint32 `protobuf:"varint,3,opt,name=t,proto3" json:"t,omitempty"` // contains filtered or unexported fields }
func (*Set) Descriptor
deprecated
func (*Set) GetParties ¶
func (*Set) ProtoMessage ¶
func (*Set) ProtoMessage()
func (*Set) ProtoReflect ¶
func (x *Set) ProtoReflect() protoreflect.Message
type SignRequest ¶
type SignRequest struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Details *anypb.Any `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*SignRequest) Descriptor
deprecated
func (*SignRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.
func (*SignRequest) GetData ¶
func (x *SignRequest) GetData() string
func (*SignRequest) GetDetails ¶
func (x *SignRequest) GetDetails() *anypb.Any
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) ProtoReflect ¶
func (x *SignRequest) ProtoReflect() protoreflect.Message
func (*SignRequest) Reset ¶
func (x *SignRequest) Reset()
func (*SignRequest) String ¶
func (x *SignRequest) String() string
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddOperation ¶
func (UnimplementedServiceServer) AddOperation(context.Context, *MsgAddOperationRequest) (*MsgAddOperationResponse, error)
func (UnimplementedServiceServer) Info ¶
func (UnimplementedServiceServer) Info(context.Context, *MsgInfoRequest) (*MsgInfoResponse, error)
func (UnimplementedServiceServer) Session ¶
func (UnimplementedServiceServer) Session(context.Context, *MsgSessionRequest) (*MsgSessionResponse, error)
func (UnimplementedServiceServer) Submit ¶
func (UnimplementedServiceServer) Submit(context.Context, *MsgSubmitRequest) (*MsgSubmitResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.