Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Election
- func (*Election) Descriptor() ([]byte, []int)deprecated
- func (x *Election) GetEndTime() *timestamppb.Timestamp
- func (x *Election) GetNewDecisionId() uint64
- func (x *Election) GetOptions() []string
- func (x *Election) GetStartTime() *timestamppb.Timestamp
- func (*Election) ProtoMessage()
- func (x *Election) ProtoReflect() protoreflect.Message
- func (x *Election) Reset()
- func (x *Election) String() string
- type GenesisState
- type MsgClient
- type MsgNewElection
- func (*MsgNewElection) Descriptor() ([]byte, []int)deprecated
- func (x *MsgNewElection) GetOptions() []string
- func (x *MsgNewElection) GetSender() string
- func (*MsgNewElection) ProtoMessage()
- func (x *MsgNewElection) ProtoReflect() protoreflect.Message
- func (x *MsgNewElection) Reset()
- func (x *MsgNewElection) String() string
- type MsgNewElectionResponse
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- type QueryClient
- type QueryCountersRequest
- func (*QueryCountersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCountersRequest) GetAddress() string
- func (*QueryCountersRequest) ProtoMessage()
- func (x *QueryCountersRequest) ProtoReflect() protoreflect.Message
- func (x *QueryCountersRequest) Reset()
- func (x *QueryCountersRequest) String() string
- type QueryCountersResponse
- func (*QueryCountersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCountersResponse) GetCounter() uint64
- func (*QueryCountersResponse) ProtoMessage()
- func (x *QueryCountersResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCountersResponse) Reset()
- func (x *QueryCountersResponse) String() string
- type QueryElectionRequest
- func (*QueryElectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryElectionRequest) GetId() uint64
- func (*QueryElectionRequest) ProtoMessage()
- func (x *QueryElectionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryElectionRequest) Reset()
- func (x *QueryElectionRequest) String() string
- type QueryElectionResponse
- func (*QueryElectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryElectionResponse) GetElection() *Election
- func (*QueryElectionResponse) ProtoMessage()
- func (x *QueryElectionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryElectionResponse) Reset()
- func (x *QueryElectionResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Counters(context.Context, *QueryCountersRequest) (*QueryCountersResponse, error)
- func (UnimplementedQueryServer) Election(context.Context, *QueryElectionRequest) (*QueryElectionResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Election_FullMethodName = "/samricotta.election.v1.Query/Election" Query_Counters_FullMethodName = "/samricotta.election.v1.Query/Counters" Query_Params_FullMethodName = "/samricotta.election.v1.Query/Params" )
const ( Msg_NewElection_FullMethodName = "/samricotta.election.v1.Msg/NewElection" Msg_UpdateParams_FullMethodName = "/samricotta.election.v1.Msg/UpdateParams" )
Variables ¶
var File_samricotta_election_v1_query_proto protoreflect.FileDescriptor
var File_samricotta_election_v1_tx_proto protoreflect.FileDescriptor
var File_samricotta_election_v1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "samricotta.election.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewElection", Handler: _Msg_NewElection_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "samricotta/election/v1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "samricotta.election.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Election", Handler: _Query_Election_Handler, }, { MethodName: "Counters", Handler: _Query_Counters_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "samricotta/election/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type Election ¶
type Election struct { NewDecisionId uint64 `protobuf:"varint,1,opt,name=new_decision_id,json=newDecisionId,proto3" json:"new_decision_id,omitempty"` Options []string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*Election) Descriptor
deprecated
func (*Election) GetEndTime ¶
func (x *Election) GetEndTime() *timestamppb.Timestamp
func (*Election) GetNewDecisionId ¶
func (*Election) GetOptions ¶
func (*Election) GetStartTime ¶
func (x *Election) GetStartTime() *timestamppb.Timestamp
func (*Election) ProtoMessage ¶
func (*Election) ProtoMessage()
func (*Election) ProtoReflect ¶
func (x *Election) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
GenesisState is the state that must be provided at genesis.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgClient ¶
type MsgClient interface { NewElection(ctx context.Context, in *MsgNewElection, opts ...grpc.CallOption) (*MsgNewElectionResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg 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 NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgNewElection ¶
type MsgNewElection struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Options []string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*MsgNewElection) Descriptor
deprecated
func (*MsgNewElection) Descriptor() ([]byte, []int)
Deprecated: Use MsgNewElection.ProtoReflect.Descriptor instead.
func (*MsgNewElection) GetOptions ¶
func (x *MsgNewElection) GetOptions() []string
func (*MsgNewElection) GetSender ¶
func (x *MsgNewElection) GetSender() string
func (*MsgNewElection) ProtoMessage ¶
func (*MsgNewElection) ProtoMessage()
func (*MsgNewElection) ProtoReflect ¶
func (x *MsgNewElection) ProtoReflect() protoreflect.Message
func (*MsgNewElection) Reset ¶
func (x *MsgNewElection) Reset()
func (*MsgNewElection) String ¶
func (x *MsgNewElection) String() string
type MsgNewElectionResponse ¶
type MsgNewElectionResponse struct {
// contains filtered or unexported fields
}
func (*MsgNewElectionResponse) Descriptor
deprecated
func (*MsgNewElectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgNewElectionResponse.ProtoReflect.Descriptor instead.
func (*MsgNewElectionResponse) ProtoMessage ¶
func (*MsgNewElectionResponse) ProtoMessage()
func (*MsgNewElectionResponse) ProtoReflect ¶
func (x *MsgNewElectionResponse) ProtoReflect() protoreflect.Message
func (*MsgNewElectionResponse) Reset ¶
func (x *MsgNewElectionResponse) Reset()
func (*MsgNewElectionResponse) String ¶
func (x *MsgNewElectionResponse) String() string
type MsgServer ¶
type MsgServer interface { NewElection(context.Context, *MsgNewElection) (*MsgNewElectionResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module // NOTE: Defaults to the governance module unless overwritten. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the module parameters to update. // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct { CommitTimeout uint64 `protobuf:"varint,1,opt,name=commit_timeout,json=commitTimeout,proto3" json:"commit_timeout,omitempty"` // in seconds RevealTimeout uint64 `protobuf:"varint,2,opt,name=reveal_timeout,json=revealTimeout,proto3" json:"reveal_timeout,omitempty"` // in seconds // contains filtered or unexported fields }
Params defines the parameters of the module.
func (*Params) Descriptor
deprecated
func (*Params) GetCommitTimeout ¶
func (*Params) GetRevealTimeout ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Counter returns the current counter value. Election(ctx context.Context, in *QueryElectionRequest, opts ...grpc.CallOption) (*QueryElectionResponse, error) // // Counters returns all the counter values. Counters(ctx context.Context, in *QueryCountersRequest, opts ...grpc.CallOption) (*QueryCountersResponse, error) // Params returns the module parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query 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 NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryCountersRequest ¶
type QueryCountersRequest struct { // address defines the address to query for the counter. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
QueryCounterRequest is the request type for the Query/Counter RPC method.
func (*QueryCountersRequest) Descriptor
deprecated
func (*QueryCountersRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCountersRequest.ProtoReflect.Descriptor instead.
func (*QueryCountersRequest) GetAddress ¶
func (x *QueryCountersRequest) GetAddress() string
func (*QueryCountersRequest) ProtoMessage ¶
func (*QueryCountersRequest) ProtoMessage()
func (*QueryCountersRequest) ProtoReflect ¶
func (x *QueryCountersRequest) ProtoReflect() protoreflect.Message
func (*QueryCountersRequest) Reset ¶
func (x *QueryCountersRequest) Reset()
func (*QueryCountersRequest) String ¶
func (x *QueryCountersRequest) String() string
type QueryCountersResponse ¶
type QueryCountersResponse struct { // counter defines the current counter for the sender. Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` // contains filtered or unexported fields }
QueryCounterResponse is the response type for the Query/Counter RPC method.
func (*QueryCountersResponse) Descriptor
deprecated
func (*QueryCountersResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCountersResponse.ProtoReflect.Descriptor instead.
func (*QueryCountersResponse) GetCounter ¶
func (x *QueryCountersResponse) GetCounter() uint64
func (*QueryCountersResponse) ProtoMessage ¶
func (*QueryCountersResponse) ProtoMessage()
func (*QueryCountersResponse) ProtoReflect ¶
func (x *QueryCountersResponse) ProtoReflect() protoreflect.Message
func (*QueryCountersResponse) Reset ¶
func (x *QueryCountersResponse) Reset()
func (*QueryCountersResponse) String ¶
func (x *QueryCountersResponse) String() string
type QueryElectionRequest ¶
type QueryElectionRequest struct { // id defines the id of the Election to query for. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QueryElectionRequest) Descriptor
deprecated
func (*QueryElectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryElectionRequest.ProtoReflect.Descriptor instead.
func (*QueryElectionRequest) GetId ¶
func (x *QueryElectionRequest) GetId() uint64
func (*QueryElectionRequest) ProtoMessage ¶
func (*QueryElectionRequest) ProtoMessage()
func (*QueryElectionRequest) ProtoReflect ¶
func (x *QueryElectionRequest) ProtoReflect() protoreflect.Message
func (*QueryElectionRequest) Reset ¶
func (x *QueryElectionRequest) Reset()
func (*QueryElectionRequest) String ¶
func (x *QueryElectionRequest) String() string
type QueryElectionResponse ¶
type QueryElectionResponse struct { // Election defines the Election for the given id. Election *Election `protobuf:"bytes,1,opt,name=Election,proto3" json:"Election,omitempty"` // contains filtered or unexported fields }
func (*QueryElectionResponse) Descriptor
deprecated
func (*QueryElectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryElectionResponse.ProtoReflect.Descriptor instead.
func (*QueryElectionResponse) GetElection ¶
func (x *QueryElectionResponse) GetElection() *Election
func (*QueryElectionResponse) ProtoMessage ¶
func (*QueryElectionResponse) ProtoMessage()
func (*QueryElectionResponse) ProtoReflect ¶
func (x *QueryElectionResponse) ProtoReflect() protoreflect.Message
func (*QueryElectionResponse) Reset ¶
func (x *QueryElectionResponse) Reset()
func (*QueryElectionResponse) String ¶
func (x *QueryElectionResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Counter returns the current counter value. Election(context.Context, *QueryElectionRequest) (*QueryElectionResponse, error) // // Counters returns all the counter values. Counters(context.Context, *QueryCountersRequest) (*QueryCountersResponse, error) // Params returns the module parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) NewElection ¶
func (UnimplementedMsgServer) NewElection(context.Context, *MsgNewElection) (*MsgNewElectionResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Counters ¶
func (UnimplementedQueryServer) Counters(context.Context, *QueryCountersRequest) (*QueryCountersResponse, error)
func (UnimplementedQueryServer) Election ¶
func (UnimplementedQueryServer) Election(context.Context, *QueryElectionRequest) (*QueryElectionResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.