identityv1

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2024 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Msg_IncrementCounter_FullMethodName = "/sonrhq.sonr.identity.v1.Msg/IncrementCounter"
	Msg_UpdateParams_FullMethodName     = "/sonrhq.sonr.identity.v1.Msg/UpdateParams"
)
View Source
const (
	Query_Params_FullMethodName = "/sonrhq.sonr.identity.v1.Query/Params"
)

Variables

View Source
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.

View Source
var File_sonrhq_sonr_identity_v1_identifier_proto protoreflect.FileDescriptor
View Source
var File_sonrhq_sonr_identity_v1_query_proto protoreflect.FileDescriptor
View Source
var File_sonrhq_sonr_identity_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_sonrhq_sonr_identity_v1_types_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Counter.ProtoReflect.Descriptor instead.

func (*Counter) GetAddress

func (x *Counter) GetAddress() string

func (*Counter) GetCount

func (x *Counter) GetCount() uint64

func (*Counter) ProtoMessage

func (*Counter) ProtoMessage()

func (*Counter) ProtoReflect

func (x *Counter) ProtoReflect() protoreflect.Message

func (*Counter) Reset

func (x *Counter) Reset()

func (*Counter) String

func (x *Counter) String() string

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

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) Enum

func (UserIdentifierType) EnumDescriptor deprecated

func (UserIdentifierType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserIdentifierType.Descriptor instead.

func (UserIdentifierType) Number

func (UserIdentifierType) String

func (x UserIdentifierType) String() string

func (UserIdentifierType) Type

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL