Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Counter
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetCounters() []*Counter
- func (x *GenesisState) GetParams() *Params
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgClient
- type MsgIncrementCounter
- func (*MsgIncrementCounter) Descriptor() ([]byte, []int)deprecated
- func (x *MsgIncrementCounter) GetSender() string
- func (*MsgIncrementCounter) ProtoMessage()
- func (x *MsgIncrementCounter) ProtoReflect() protoreflect.Message
- func (x *MsgIncrementCounter) Reset()
- func (x *MsgIncrementCounter) String() string
- type MsgIncrementCounterResponse
- 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 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
- type UnsafeMsgServer
- type UnsafeQueryServer
- type UserIdentifier
- func (*UserIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *UserIdentifier) GetIdentifierType() UserIdentifierType
- func (x *UserIdentifier) GetValue() string
- func (*UserIdentifier) ProtoMessage()
- func (x *UserIdentifier) ProtoReflect() protoreflect.Message
- func (x *UserIdentifier) Reset()
- func (x *UserIdentifier) String() string
- type UserIdentifierType
- func (UserIdentifierType) Descriptor() protoreflect.EnumDescriptor
- func (x UserIdentifierType) Enum() *UserIdentifierType
- func (UserIdentifierType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserIdentifierType) Number() protoreflect.EnumNumber
- func (x UserIdentifierType) String() string
- func (UserIdentifierType) Type() protoreflect.EnumType
- type WalletIdentifier
- func (*WalletIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *WalletIdentifier) GetCoinType() uint32
- func (x *WalletIdentifier) GetValue() string
- func (*WalletIdentifier) ProtoMessage()
- func (x *WalletIdentifier) ProtoReflect() protoreflect.Message
- func (x *WalletIdentifier) Reset()
- func (x *WalletIdentifier) String() string
Constants ¶
const ( Msg_IncrementCounter_FullMethodName = "/sonrhq.sonr.identity.v1.Msg/IncrementCounter" Msg_UpdateParams_FullMethodName = "/sonrhq.sonr.identity.v1.Msg/UpdateParams" )
const (
Query_Params_FullMethodName = "/sonrhq.sonr.identity.v1.Query/Params"
)
Variables ¶
var ( UserIdentifierType_name = map[int32]string{ 0: "USER_IDENTIFIER_TYPE_UNSPECIFIED", 1: "USER_IDENTIFIER_TYPE_EMAIL", 2: "USER_IDENTIFIER_TYPE_PHONE", 3: "USER_IDENTIFIER_TYPE_FIDO", 4: "USER_IDENTIFIER_TYPE_PASSKEY", 5: "USER_IDENTIFIER_TYPE_PUBLIC_KEY", } UserIdentifierType_value = map[string]int32{ "USER_IDENTIFIER_TYPE_UNSPECIFIED": 0, "USER_IDENTIFIER_TYPE_EMAIL": 1, "USER_IDENTIFIER_TYPE_PHONE": 2, "USER_IDENTIFIER_TYPE_FIDO": 3, "USER_IDENTIFIER_TYPE_PASSKEY": 4, "USER_IDENTIFIER_TYPE_PUBLIC_KEY": 5, } )
Enum value maps for UserIdentifierType.
var File_sonrhq_sonr_identity_v1_identifier_proto protoreflect.FileDescriptor
var File_sonrhq_sonr_identity_v1_query_proto protoreflect.FileDescriptor
var File_sonrhq_sonr_identity_v1_tx_proto protoreflect.FileDescriptor
var File_sonrhq_sonr_identity_v1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sonrhq.sonr.identity.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IncrementCounter", Handler: _Msg_IncrementCounter_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sonrhq/sonr/identity/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: "sonrhq.sonr.identity.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sonrhq/sonr/identity/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 Counter ¶
type Counter struct { // count defines the count of the counter. Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // address defines the address that is associated with the count. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
Counter defines a counter object. It is used only for genesis purposes. Collections does not need to use it.
func (*Counter) Descriptor
deprecated
func (*Counter) GetAddress ¶
func (*Counter) ProtoMessage ¶
func (*Counter) ProtoMessage()
func (*Counter) ProtoReflect ¶
func (x *Counter) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { // counter defines the counter object. Counters []*Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters,omitempty"` // params defines all the parameters of the module. Params *Params `protobuf:"bytes,2,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) GetCounters ¶
func (x *GenesisState) GetCounters() []*Counter
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 { // IncrementCounter increments the counter. IncrementCounter(ctx context.Context, in *MsgIncrementCounter, opts ...grpc.CallOption) (*MsgIncrementCounterResponse, error) // UpdateParams updates the module parameters. 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 MsgIncrementCounter ¶
type MsgIncrementCounter struct { // sender is the message sender. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // contains filtered or unexported fields }
MsgIncrementCounter defines the Msg/IncrementCounter request type.
func (*MsgIncrementCounter) Descriptor
deprecated
func (*MsgIncrementCounter) Descriptor() ([]byte, []int)
Deprecated: Use MsgIncrementCounter.ProtoReflect.Descriptor instead.
func (*MsgIncrementCounter) GetSender ¶
func (x *MsgIncrementCounter) GetSender() string
func (*MsgIncrementCounter) ProtoMessage ¶
func (*MsgIncrementCounter) ProtoMessage()
func (*MsgIncrementCounter) ProtoReflect ¶
func (x *MsgIncrementCounter) ProtoReflect() protoreflect.Message
func (*MsgIncrementCounter) Reset ¶
func (x *MsgIncrementCounter) Reset()
func (*MsgIncrementCounter) String ¶
func (x *MsgIncrementCounter) String() string
type MsgIncrementCounterResponse ¶
type MsgIncrementCounterResponse struct {
// contains filtered or unexported fields
}
MsgIncrementCounterResponse defines the Msg/IncrementCounter response type.
func (*MsgIncrementCounterResponse) Descriptor
deprecated
func (*MsgIncrementCounterResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgIncrementCounterResponse.ProtoReflect.Descriptor instead.
func (*MsgIncrementCounterResponse) ProtoMessage ¶
func (*MsgIncrementCounterResponse) ProtoMessage()
func (*MsgIncrementCounterResponse) ProtoReflect ¶
func (x *MsgIncrementCounterResponse) ProtoReflect() protoreflect.Message
func (*MsgIncrementCounterResponse) Reset ¶
func (x *MsgIncrementCounterResponse) Reset()
func (*MsgIncrementCounterResponse) String ¶
func (x *MsgIncrementCounterResponse) String() string
type MsgServer ¶
type MsgServer interface { // IncrementCounter increments the counter. IncrementCounter(context.Context, *MsgIncrementCounter) (*MsgIncrementCounterResponse, error) // UpdateParams updates the module parameters. 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 {
// contains filtered or unexported fields
}
Params defines the parameters of the module.
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // 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 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 { // 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) IncrementCounter ¶
func (UnimplementedMsgServer) IncrementCounter(context.Context, *MsgIncrementCounter) (*MsgIncrementCounterResponse, 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) 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.
type UserIdentifier ¶
type UserIdentifier struct { // The type of identifier. IdentifierType UserIdentifierType `` /* 152-byte string literal not displayed */ // The value of the identifier. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
UserIdentifier represents the structure of a user identifier.
func (*UserIdentifier) Descriptor
deprecated
func (*UserIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use UserIdentifier.ProtoReflect.Descriptor instead.
func (*UserIdentifier) GetIdentifierType ¶
func (x *UserIdentifier) GetIdentifierType() UserIdentifierType
func (*UserIdentifier) GetValue ¶
func (x *UserIdentifier) GetValue() string
func (*UserIdentifier) ProtoMessage ¶
func (*UserIdentifier) ProtoMessage()
func (*UserIdentifier) ProtoReflect ¶
func (x *UserIdentifier) ProtoReflect() protoreflect.Message
func (*UserIdentifier) Reset ¶
func (x *UserIdentifier) Reset()
func (*UserIdentifier) String ¶
func (x *UserIdentifier) String() string
type UserIdentifierType ¶
type UserIdentifierType int32
UserIdentifierType represents the type of a user identifier.
const ( // The type of identifier is unknown. UserIdentifierType_USER_IDENTIFIER_TYPE_UNSPECIFIED UserIdentifierType = 0 // The type of identifier is an email address. UserIdentifierType_USER_IDENTIFIER_TYPE_EMAIL UserIdentifierType = 1 // The type of identifier is a phone number. UserIdentifierType_USER_IDENTIFIER_TYPE_PHONE UserIdentifierType = 2 // The type of identifier is a FIDO credential ID. UserIdentifierType_USER_IDENTIFIER_TYPE_FIDO UserIdentifierType = 3 // The type of a Passkey identifier. UserIdentifierType_USER_IDENTIFIER_TYPE_PASSKEY UserIdentifierType = 4 // The type of a public key identifier. UserIdentifierType_USER_IDENTIFIER_TYPE_PUBLIC_KEY UserIdentifierType = 5 )
func (UserIdentifierType) Descriptor ¶
func (UserIdentifierType) Descriptor() protoreflect.EnumDescriptor
func (UserIdentifierType) Enum ¶
func (x UserIdentifierType) Enum() *UserIdentifierType
func (UserIdentifierType) EnumDescriptor
deprecated
func (UserIdentifierType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserIdentifierType.Descriptor instead.
func (UserIdentifierType) Number ¶
func (x UserIdentifierType) Number() protoreflect.EnumNumber
func (UserIdentifierType) String ¶
func (x UserIdentifierType) String() string
func (UserIdentifierType) Type ¶
func (UserIdentifierType) Type() protoreflect.EnumType
type WalletIdentifier ¶
type WalletIdentifier struct { // The bip44 coin type. CoinType uint32 `protobuf:"varint,1,opt,name=coin_type,json=coinType,proto3" json:"coin_type,omitempty"` // The value of the identifier is the address of the wallet. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
WalletIdentifier represents the structure of a wallet identifier.
func (*WalletIdentifier) Descriptor
deprecated
func (*WalletIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use WalletIdentifier.ProtoReflect.Descriptor instead.
func (*WalletIdentifier) GetCoinType ¶
func (x *WalletIdentifier) GetCoinType() uint32
func (*WalletIdentifier) GetValue ¶
func (x *WalletIdentifier) GetValue() string
func (*WalletIdentifier) ProtoMessage ¶
func (*WalletIdentifier) ProtoMessage()
func (*WalletIdentifier) ProtoReflect ¶
func (x *WalletIdentifier) ProtoReflect() protoreflect.Message
func (*WalletIdentifier) Reset ¶
func (x *WalletIdentifier) Reset()
func (*WalletIdentifier) String ¶
func (x *WalletIdentifier) String() string