modulev1

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateQueryService_GetCredential_FullMethodName                  = "/sonr.service.module.v1.StateQueryService/GetCredential"
	StateQueryService_GetCredentialByOriginHandle_FullMethodName    = "/sonr.service.module.v1.StateQueryService/GetCredentialByOriginHandle"
	StateQueryService_GetCredentialById_FullMethodName              = "/sonr.service.module.v1.StateQueryService/GetCredentialById"
	StateQueryService_GetCredentialByOriginAuthority_FullMethodName = "/sonr.service.module.v1.StateQueryService/GetCredentialByOriginAuthority"
	StateQueryService_ListCredential_FullMethodName                 = "/sonr.service.module.v1.StateQueryService/ListCredential"
	StateQueryService_GetProfile_FullMethodName                     = "/sonr.service.module.v1.StateQueryService/GetProfile"
	StateQueryService_GetProfileByOriginAuthority_FullMethodName    = "/sonr.service.module.v1.StateQueryService/GetProfileByOriginAuthority"
	StateQueryService_ListProfile_FullMethodName                    = "/sonr.service.module.v1.StateQueryService/ListProfile"
)

Variables

View Source
var File_sonr_service_module_v1_module_proto protoreflect.FileDescriptor
View Source
var File_sonr_service_module_v1_state_proto protoreflect.FileDescriptor
View Source
var File_sonr_service_module_v1_state_query_proto protoreflect.FileDescriptor
View Source
var StateQueryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sonr.service.module.v1.StateQueryService",
	HandlerType: (*StateQueryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCredential",
			Handler:    _StateQueryService_GetCredential_Handler,
		},
		{
			MethodName: "GetCredentialByOriginHandle",
			Handler:    _StateQueryService_GetCredentialByOriginHandle_Handler,
		},
		{
			MethodName: "GetCredentialById",
			Handler:    _StateQueryService_GetCredentialById_Handler,
		},
		{
			MethodName: "GetCredentialByOriginAuthority",
			Handler:    _StateQueryService_GetCredentialByOriginAuthority_Handler,
		},
		{
			MethodName: "ListCredential",
			Handler:    _StateQueryService_ListCredential_Handler,
		},
		{
			MethodName: "GetProfile",
			Handler:    _StateQueryService_GetProfile_Handler,
		},
		{
			MethodName: "GetProfileByOriginAuthority",
			Handler:    _StateQueryService_GetProfileByOriginAuthority_Handler,
		},
		{
			MethodName: "ListProfile",
			Handler:    _StateQueryService_ListProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sonr/service/module/v1/state_query.proto",
}

StateQueryService_ServiceDesc is the grpc.ServiceDesc for StateQueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStateQueryServiceServer

func RegisterStateQueryServiceServer(s grpc.ServiceRegistrar, srv StateQueryServiceServer)

Types

type Credential

type Credential struct {
	Sequence        uint64   `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Handle          string   `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	Transport       []string `protobuf:"bytes,3,rep,name=transport,proto3" json:"transport,omitempty"`
	Authority       string   `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"`
	AttestationType string   `protobuf:"bytes,5,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"`
	Id              []byte   `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
	Origin          string   `protobuf:"bytes,7,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

Credential is the total supply of the module.

func (*Credential) Descriptor deprecated

func (*Credential) Descriptor() ([]byte, []int)

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetAttestationType

func (x *Credential) GetAttestationType() string

func (*Credential) GetAuthority added in v0.14.0

func (x *Credential) GetAuthority() string

func (*Credential) GetHandle

func (x *Credential) GetHandle() string

func (*Credential) GetId

func (x *Credential) GetId() []byte

func (*Credential) GetOrigin

func (x *Credential) GetOrigin() string

func (*Credential) GetSequence added in v0.14.0

func (x *Credential) GetSequence() uint64

func (*Credential) GetTransport

func (x *Credential) GetTransport() []string

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type CredentialHandleIndexKey

type CredentialHandleIndexKey struct {
	// contains filtered or unexported fields
}

func (CredentialHandleIndexKey) WithHandle

type CredentialIdIndexKey

type CredentialIdIndexKey struct {
	// contains filtered or unexported fields
}

func (CredentialIdIndexKey) WithId

type CredentialIndexKey

type CredentialIndexKey interface {
	// contains filtered or unexported methods
}

type CredentialIterator

type CredentialIterator struct {
	ormtable.Iterator
}

func (CredentialIterator) Value

func (i CredentialIterator) Value() (*Credential, error)

type CredentialOriginAuthorityIndexKey added in v0.14.0

type CredentialOriginAuthorityIndexKey struct {
	// contains filtered or unexported fields
}

func (CredentialOriginAuthorityIndexKey) WithOrigin added in v0.14.0

func (CredentialOriginAuthorityIndexKey) WithOriginAuthority added in v0.14.0

func (this CredentialOriginAuthorityIndexKey) WithOriginAuthority(origin string, authority string) CredentialOriginAuthorityIndexKey

type CredentialOriginHandleIndexKey

type CredentialOriginHandleIndexKey struct {
	// contains filtered or unexported fields
}

func (CredentialOriginHandleIndexKey) WithOrigin

func (CredentialOriginHandleIndexKey) WithOriginHandle

func (this CredentialOriginHandleIndexKey) WithOriginHandle(origin string, handle string) CredentialOriginHandleIndexKey

type CredentialPrimaryKey

type CredentialPrimaryKey = CredentialSequenceIndexKey

primary key starting index..

type CredentialSequenceIndexKey added in v0.14.0

type CredentialSequenceIndexKey struct {
	// contains filtered or unexported fields
}

func (CredentialSequenceIndexKey) WithSequence added in v0.14.0

func (this CredentialSequenceIndexKey) WithSequence(sequence uint64) CredentialSequenceIndexKey

type CredentialTable

type CredentialTable interface {
	Insert(ctx context.Context, credential *Credential) error
	InsertReturningSequence(ctx context.Context, credential *Credential) (uint64, error)
	LastInsertedSequence(ctx context.Context) (uint64, error)
	Update(ctx context.Context, credential *Credential) error
	Save(ctx context.Context, credential *Credential) error
	Delete(ctx context.Context, credential *Credential) error
	Has(ctx context.Context, sequence uint64) (found bool, err error)
	// Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	Get(ctx context.Context, sequence uint64) (*Credential, error)
	HasByOriginHandle(ctx context.Context, origin string, handle string) (found bool, err error)
	// GetByOriginHandle returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByOriginHandle(ctx context.Context, origin string, handle string) (*Credential, error)
	HasById(ctx context.Context, id []byte) (found bool, err error)
	// GetById returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetById(ctx context.Context, id []byte) (*Credential, error)
	HasByOriginAuthority(ctx context.Context, origin string, authority string) (found bool, err error)
	// GetByOriginAuthority returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByOriginAuthority(ctx context.Context, origin string, authority string) (*Credential, error)
	List(ctx context.Context, prefixKey CredentialIndexKey, opts ...ormlist.Option) (CredentialIterator, error)
	ListRange(ctx context.Context, from, to CredentialIndexKey, opts ...ormlist.Option) (CredentialIterator, error)
	DeleteBy(ctx context.Context, prefixKey CredentialIndexKey) error
	DeleteRange(ctx context.Context, from, to CredentialIndexKey) error
	// contains filtered or unexported methods
}

func NewCredentialTable

func NewCredentialTable(db ormtable.Schema) (CredentialTable, error)

type GetCredentialByIdRequest added in v0.14.0

type GetCredentialByIdRequest struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialByIdRequest is the StateQuery/GetCredentialByIdRequest request type.

func (*GetCredentialByIdRequest) Descriptor deprecated added in v0.14.0

func (*GetCredentialByIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialByIdRequest.ProtoReflect.Descriptor instead.

func (*GetCredentialByIdRequest) GetId added in v0.14.0

func (x *GetCredentialByIdRequest) GetId() []byte

func (*GetCredentialByIdRequest) ProtoMessage added in v0.14.0

func (*GetCredentialByIdRequest) ProtoMessage()

func (*GetCredentialByIdRequest) ProtoReflect added in v0.14.0

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

func (*GetCredentialByIdRequest) Reset added in v0.14.0

func (x *GetCredentialByIdRequest) Reset()

func (*GetCredentialByIdRequest) String added in v0.14.0

func (x *GetCredentialByIdRequest) String() string

type GetCredentialByIdResponse added in v0.14.0

type GetCredentialByIdResponse struct {
	Value *Credential `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialByIdResponse is the StateQuery/GetCredentialByIdResponse response type.

func (*GetCredentialByIdResponse) Descriptor deprecated added in v0.14.0

func (*GetCredentialByIdResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialByIdResponse.ProtoReflect.Descriptor instead.

func (*GetCredentialByIdResponse) GetValue added in v0.14.0

func (x *GetCredentialByIdResponse) GetValue() *Credential

func (*GetCredentialByIdResponse) ProtoMessage added in v0.14.0

func (*GetCredentialByIdResponse) ProtoMessage()

func (*GetCredentialByIdResponse) ProtoReflect added in v0.14.0

func (*GetCredentialByIdResponse) Reset added in v0.14.0

func (x *GetCredentialByIdResponse) Reset()

func (*GetCredentialByIdResponse) String added in v0.14.0

func (x *GetCredentialByIdResponse) String() string

type GetCredentialByOriginAuthorityRequest added in v0.14.0

type GetCredentialByOriginAuthorityRequest struct {
	Origin    string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialByOriginAuthorityRequest is the StateQuery/GetCredentialByOriginAuthorityRequest request type.

func (*GetCredentialByOriginAuthorityRequest) Descriptor deprecated added in v0.14.0

func (*GetCredentialByOriginAuthorityRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialByOriginAuthorityRequest.ProtoReflect.Descriptor instead.

func (*GetCredentialByOriginAuthorityRequest) GetAuthority added in v0.14.0

func (*GetCredentialByOriginAuthorityRequest) GetOrigin added in v0.14.0

func (*GetCredentialByOriginAuthorityRequest) ProtoMessage added in v0.14.0

func (*GetCredentialByOriginAuthorityRequest) ProtoMessage()

func (*GetCredentialByOriginAuthorityRequest) ProtoReflect added in v0.14.0

func (*GetCredentialByOriginAuthorityRequest) Reset added in v0.14.0

func (*GetCredentialByOriginAuthorityRequest) String added in v0.14.0

type GetCredentialByOriginAuthorityResponse added in v0.14.0

type GetCredentialByOriginAuthorityResponse struct {
	Value *Credential `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialByOriginAuthorityResponse is the StateQuery/GetCredentialByOriginAuthorityResponse response type.

func (*GetCredentialByOriginAuthorityResponse) Descriptor deprecated added in v0.14.0

func (*GetCredentialByOriginAuthorityResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialByOriginAuthorityResponse.ProtoReflect.Descriptor instead.

func (*GetCredentialByOriginAuthorityResponse) GetValue added in v0.14.0

func (*GetCredentialByOriginAuthorityResponse) ProtoMessage added in v0.14.0

func (*GetCredentialByOriginAuthorityResponse) ProtoReflect added in v0.14.0

func (*GetCredentialByOriginAuthorityResponse) Reset added in v0.14.0

func (*GetCredentialByOriginAuthorityResponse) String added in v0.14.0

type GetCredentialByOriginHandleRequest

type GetCredentialByOriginHandleRequest struct {
	Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialByOriginHandleRequest is the StateQuery/GetCredentialByOriginHandleRequest request type.

func (*GetCredentialByOriginHandleRequest) Descriptor deprecated

func (*GetCredentialByOriginHandleRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialByOriginHandleRequest.ProtoReflect.Descriptor instead.

func (*GetCredentialByOriginHandleRequest) GetHandle

func (*GetCredentialByOriginHandleRequest) GetOrigin

func (*GetCredentialByOriginHandleRequest) ProtoMessage

func (*GetCredentialByOriginHandleRequest) ProtoMessage()

func (*GetCredentialByOriginHandleRequest) ProtoReflect

func (*GetCredentialByOriginHandleRequest) Reset

func (*GetCredentialByOriginHandleRequest) String

type GetCredentialByOriginHandleResponse

type GetCredentialByOriginHandleResponse struct {
	Value *Credential `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialByOriginHandleResponse is the StateQuery/GetCredentialByOriginHandleResponse response type.

func (*GetCredentialByOriginHandleResponse) Descriptor deprecated

func (*GetCredentialByOriginHandleResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialByOriginHandleResponse.ProtoReflect.Descriptor instead.

func (*GetCredentialByOriginHandleResponse) GetValue

func (*GetCredentialByOriginHandleResponse) ProtoMessage

func (*GetCredentialByOriginHandleResponse) ProtoMessage()

func (*GetCredentialByOriginHandleResponse) ProtoReflect

func (*GetCredentialByOriginHandleResponse) Reset

func (*GetCredentialByOriginHandleResponse) String

type GetCredentialRequest

type GetCredentialRequest struct {

	// sequence specifies the value of the sequence field in the primary key.
	Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialRequest is the StateQuery/GetCredentialRequest request type.

func (*GetCredentialRequest) Descriptor deprecated

func (*GetCredentialRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialRequest.ProtoReflect.Descriptor instead.

func (*GetCredentialRequest) GetSequence added in v0.14.0

func (x *GetCredentialRequest) GetSequence() uint64

func (*GetCredentialRequest) ProtoMessage

func (*GetCredentialRequest) ProtoMessage()

func (*GetCredentialRequest) ProtoReflect

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

func (*GetCredentialRequest) Reset

func (x *GetCredentialRequest) Reset()

func (*GetCredentialRequest) String

func (x *GetCredentialRequest) String() string

type GetCredentialResponse

type GetCredentialResponse struct {

	// value is the response value.
	Value *Credential `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

GetCredentialResponse is the StateQuery/GetCredentialResponse response type.

func (*GetCredentialResponse) Descriptor deprecated

func (*GetCredentialResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCredentialResponse.ProtoReflect.Descriptor instead.

func (*GetCredentialResponse) GetValue

func (x *GetCredentialResponse) GetValue() *Credential

func (*GetCredentialResponse) ProtoMessage

func (*GetCredentialResponse) ProtoMessage()

func (*GetCredentialResponse) ProtoReflect

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

func (*GetCredentialResponse) Reset

func (x *GetCredentialResponse) Reset()

func (*GetCredentialResponse) String

func (x *GetCredentialResponse) String() string

type GetProfileByOriginAuthorityRequest added in v0.14.1

type GetProfileByOriginAuthorityRequest struct {
	Origin    string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

GetProfileByOriginAuthorityRequest is the StateQuery/GetProfileByOriginAuthorityRequest request type.

func (*GetProfileByOriginAuthorityRequest) Descriptor deprecated added in v0.14.1

func (*GetProfileByOriginAuthorityRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProfileByOriginAuthorityRequest.ProtoReflect.Descriptor instead.

func (*GetProfileByOriginAuthorityRequest) GetAuthority added in v0.14.1

func (x *GetProfileByOriginAuthorityRequest) GetAuthority() string

func (*GetProfileByOriginAuthorityRequest) GetOrigin added in v0.14.1

func (*GetProfileByOriginAuthorityRequest) ProtoMessage added in v0.14.1

func (*GetProfileByOriginAuthorityRequest) ProtoMessage()

func (*GetProfileByOriginAuthorityRequest) ProtoReflect added in v0.14.1

func (*GetProfileByOriginAuthorityRequest) Reset added in v0.14.1

func (*GetProfileByOriginAuthorityRequest) String added in v0.14.1

type GetProfileByOriginAuthorityResponse added in v0.14.1

type GetProfileByOriginAuthorityResponse struct {
	Value *Profile `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

GetProfileByOriginAuthorityResponse is the StateQuery/GetProfileByOriginAuthorityResponse response type.

func (*GetProfileByOriginAuthorityResponse) Descriptor deprecated added in v0.14.1

func (*GetProfileByOriginAuthorityResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProfileByOriginAuthorityResponse.ProtoReflect.Descriptor instead.

func (*GetProfileByOriginAuthorityResponse) GetValue added in v0.14.1

func (*GetProfileByOriginAuthorityResponse) ProtoMessage added in v0.14.1

func (*GetProfileByOriginAuthorityResponse) ProtoMessage()

func (*GetProfileByOriginAuthorityResponse) ProtoReflect added in v0.14.1

func (*GetProfileByOriginAuthorityResponse) Reset added in v0.14.1

func (*GetProfileByOriginAuthorityResponse) String added in v0.14.1

type GetProfileRequest added in v0.14.1

type GetProfileRequest struct {

	// index specifies the value of the index field in the primary key.
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

GetProfileRequest is the StateQuery/GetProfileRequest request type.

func (*GetProfileRequest) Descriptor deprecated added in v0.14.1

func (*GetProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) GetIndex added in v0.14.1

func (x *GetProfileRequest) GetIndex() uint64

func (*GetProfileRequest) ProtoMessage added in v0.14.1

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect added in v0.14.1

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

func (*GetProfileRequest) Reset added in v0.14.1

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String added in v0.14.1

func (x *GetProfileRequest) String() string

type GetProfileResponse added in v0.14.1

type GetProfileResponse struct {

	// value is the response value.
	Value *Profile `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

GetProfileResponse is the StateQuery/GetProfileResponse response type.

func (*GetProfileResponse) Descriptor deprecated added in v0.14.1

func (*GetProfileResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetValue added in v0.14.1

func (x *GetProfileResponse) GetValue() *Profile

func (*GetProfileResponse) ProtoMessage added in v0.14.1

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect added in v0.14.1

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

func (*GetProfileResponse) Reset added in v0.14.1

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String added in v0.14.1

func (x *GetProfileResponse) String() string

type ListCredentialRequest

type ListCredentialRequest struct {

	// query specifies the type of query - either a prefix or range query.
	//
	// Types that are assignable to Query:
	//
	//	*ListCredentialRequest_PrefixQuery
	//	*ListCredentialRequest_RangeQuery_
	Query isListCredentialRequest_Query `protobuf_oneof:"query"`
	// pagination specifies optional pagination parameters.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

ListCredentialRequest is the StateQuery/ListCredentialRequest request type.

func (*ListCredentialRequest) Descriptor deprecated

func (*ListCredentialRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCredentialRequest.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest) GetPagination

func (x *ListCredentialRequest) GetPagination() *v1beta1.PageRequest

func (*ListCredentialRequest) GetPrefixQuery

func (*ListCredentialRequest) GetQuery

func (m *ListCredentialRequest) GetQuery() isListCredentialRequest_Query

func (*ListCredentialRequest) GetRangeQuery

func (*ListCredentialRequest) ProtoMessage

func (*ListCredentialRequest) ProtoMessage()

func (*ListCredentialRequest) ProtoReflect

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

func (*ListCredentialRequest) Reset

func (x *ListCredentialRequest) Reset()

func (*ListCredentialRequest) String

func (x *ListCredentialRequest) String() string

type ListCredentialRequest_IndexKey

type ListCredentialRequest_IndexKey struct {

	// key specifies the index key value.
	//
	// Types that are assignable to Key:
	//
	//	*ListCredentialRequest_IndexKey_Sequence_
	//	*ListCredentialRequest_IndexKey_Handle_
	//	*ListCredentialRequest_IndexKey_OriginHandle_
	//	*ListCredentialRequest_IndexKey_Id_
	//	*ListCredentialRequest_IndexKey_OriginAuthority_
	Key isListCredentialRequest_IndexKey_Key `protobuf_oneof:"key"`
	// contains filtered or unexported fields
}

IndexKey specifies the value of an index key to use in prefix and range queries.

func (*ListCredentialRequest_IndexKey) Descriptor deprecated

func (*ListCredentialRequest_IndexKey) Descriptor() ([]byte, []int)

Deprecated: Use ListCredentialRequest_IndexKey.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest_IndexKey) GetHandle

func (*ListCredentialRequest_IndexKey) GetId

func (*ListCredentialRequest_IndexKey) GetKey

func (m *ListCredentialRequest_IndexKey) GetKey() isListCredentialRequest_IndexKey_Key

func (*ListCredentialRequest_IndexKey) GetOriginAuthority added in v0.14.0

func (*ListCredentialRequest_IndexKey) GetOriginHandle

func (*ListCredentialRequest_IndexKey) GetSequence added in v0.14.0

func (*ListCredentialRequest_IndexKey) ProtoMessage

func (*ListCredentialRequest_IndexKey) ProtoMessage()

func (*ListCredentialRequest_IndexKey) ProtoReflect

func (*ListCredentialRequest_IndexKey) Reset

func (x *ListCredentialRequest_IndexKey) Reset()

func (*ListCredentialRequest_IndexKey) String

type ListCredentialRequest_IndexKey_Handle

type ListCredentialRequest_IndexKey_Handle struct {

	// handle is the value of the handle field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Handle *string `protobuf:"bytes,1,opt,name=handle,proto3,oneof" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCredentialRequest_IndexKey_Handle) Descriptor deprecated

func (*ListCredentialRequest_IndexKey_Handle) Descriptor() ([]byte, []int)

Deprecated: Use ListCredentialRequest_IndexKey_Handle.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest_IndexKey_Handle) GetHandle

func (*ListCredentialRequest_IndexKey_Handle) ProtoMessage

func (*ListCredentialRequest_IndexKey_Handle) ProtoMessage()

func (*ListCredentialRequest_IndexKey_Handle) ProtoReflect

func (*ListCredentialRequest_IndexKey_Handle) Reset

func (*ListCredentialRequest_IndexKey_Handle) String

type ListCredentialRequest_IndexKey_Handle_

type ListCredentialRequest_IndexKey_Handle_ struct {
	// handle specifies the value of the Handle index key to use in the query.
	Handle *ListCredentialRequest_IndexKey_Handle `protobuf:"bytes,2,opt,name=handle,proto3,oneof"`
}

type ListCredentialRequest_IndexKey_Id

type ListCredentialRequest_IndexKey_Id struct {

	// id is the value of the id field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCredentialRequest_IndexKey_Id) Descriptor deprecated

func (*ListCredentialRequest_IndexKey_Id) Descriptor() ([]byte, []int)

Deprecated: Use ListCredentialRequest_IndexKey_Id.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest_IndexKey_Id) GetId

func (*ListCredentialRequest_IndexKey_Id) ProtoMessage

func (*ListCredentialRequest_IndexKey_Id) ProtoMessage()

func (*ListCredentialRequest_IndexKey_Id) ProtoReflect

func (*ListCredentialRequest_IndexKey_Id) Reset

func (*ListCredentialRequest_IndexKey_Id) String

type ListCredentialRequest_IndexKey_Id_

type ListCredentialRequest_IndexKey_Id_ struct {
	// id specifies the value of the Id index key to use in the query.
	Id *ListCredentialRequest_IndexKey_Id `protobuf:"bytes,4,opt,name=id,proto3,oneof"`
}

type ListCredentialRequest_IndexKey_OriginAuthority added in v0.14.0

type ListCredentialRequest_IndexKey_OriginAuthority struct {

	// origin is the value of the origin field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Origin *string `protobuf:"bytes,1,opt,name=origin,proto3,oneof" json:"origin,omitempty"`
	// authority is the value of the authority field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Authority *string `protobuf:"bytes,2,opt,name=authority,proto3,oneof" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCredentialRequest_IndexKey_OriginAuthority) Descriptor deprecated added in v0.14.0

Deprecated: Use ListCredentialRequest_IndexKey_OriginAuthority.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest_IndexKey_OriginAuthority) GetAuthority added in v0.14.0

func (*ListCredentialRequest_IndexKey_OriginAuthority) GetOrigin added in v0.14.0

func (*ListCredentialRequest_IndexKey_OriginAuthority) ProtoMessage added in v0.14.0

func (*ListCredentialRequest_IndexKey_OriginAuthority) ProtoReflect added in v0.14.0

func (*ListCredentialRequest_IndexKey_OriginAuthority) Reset added in v0.14.0

func (*ListCredentialRequest_IndexKey_OriginAuthority) String added in v0.14.0

type ListCredentialRequest_IndexKey_OriginAuthority_ added in v0.14.0

type ListCredentialRequest_IndexKey_OriginAuthority_ struct {
	// origin_authority specifies the value of the OriginAuthority index key to use in the query.
	OriginAuthority *ListCredentialRequest_IndexKey_OriginAuthority `protobuf:"bytes,5,opt,name=origin_authority,json=originAuthority,proto3,oneof"`
}

type ListCredentialRequest_IndexKey_OriginHandle

type ListCredentialRequest_IndexKey_OriginHandle struct {

	// origin is the value of the origin field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Origin *string `protobuf:"bytes,1,opt,name=origin,proto3,oneof" json:"origin,omitempty"`
	// handle is the value of the handle field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Handle *string `protobuf:"bytes,2,opt,name=handle,proto3,oneof" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCredentialRequest_IndexKey_OriginHandle) Descriptor deprecated

Deprecated: Use ListCredentialRequest_IndexKey_OriginHandle.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest_IndexKey_OriginHandle) GetHandle

func (*ListCredentialRequest_IndexKey_OriginHandle) GetOrigin

func (*ListCredentialRequest_IndexKey_OriginHandle) ProtoMessage

func (*ListCredentialRequest_IndexKey_OriginHandle) ProtoReflect

func (*ListCredentialRequest_IndexKey_OriginHandle) Reset

func (*ListCredentialRequest_IndexKey_OriginHandle) String

type ListCredentialRequest_IndexKey_OriginHandle_

type ListCredentialRequest_IndexKey_OriginHandle_ struct {
	// origin_handle specifies the value of the OriginHandle index key to use in the query.
	OriginHandle *ListCredentialRequest_IndexKey_OriginHandle `protobuf:"bytes,3,opt,name=origin_handle,json=originHandle,proto3,oneof"`
}

type ListCredentialRequest_IndexKey_Sequence added in v0.14.0

type ListCredentialRequest_IndexKey_Sequence struct {

	// sequence is the value of the sequence field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Sequence *uint64 `protobuf:"varint,1,opt,name=sequence,proto3,oneof" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCredentialRequest_IndexKey_Sequence) Descriptor deprecated added in v0.14.0

func (*ListCredentialRequest_IndexKey_Sequence) Descriptor() ([]byte, []int)

Deprecated: Use ListCredentialRequest_IndexKey_Sequence.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest_IndexKey_Sequence) GetSequence added in v0.14.0

func (*ListCredentialRequest_IndexKey_Sequence) ProtoMessage added in v0.14.0

func (*ListCredentialRequest_IndexKey_Sequence) ProtoReflect added in v0.14.0

func (*ListCredentialRequest_IndexKey_Sequence) Reset added in v0.14.0

func (*ListCredentialRequest_IndexKey_Sequence) String added in v0.14.0

type ListCredentialRequest_IndexKey_Sequence_ added in v0.14.0

type ListCredentialRequest_IndexKey_Sequence_ struct {
	// sequence specifies the value of the Sequence index key to use in the query.
	Sequence *ListCredentialRequest_IndexKey_Sequence `protobuf:"bytes,1,opt,name=sequence,proto3,oneof"`
}

type ListCredentialRequest_PrefixQuery

type ListCredentialRequest_PrefixQuery struct {
	// prefix_query specifies the index key value to use for the prefix query.
	PrefixQuery *ListCredentialRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"`
}

type ListCredentialRequest_RangeQuery

type ListCredentialRequest_RangeQuery struct {

	// from is the index key to use for the start of the range query.
	// To query from the start of an index, specify an index key for that index with empty values.
	From *ListCredentialRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// to is the index key to use for the end of the range query.
	// The index key type MUST be the same as the index key type used for from.
	// To query from to the end of an index it can be omitted.
	To *ListCredentialRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

RangeQuery specifies the from/to index keys for a range query.

func (*ListCredentialRequest_RangeQuery) Descriptor deprecated

func (*ListCredentialRequest_RangeQuery) Descriptor() ([]byte, []int)

Deprecated: Use ListCredentialRequest_RangeQuery.ProtoReflect.Descriptor instead.

func (*ListCredentialRequest_RangeQuery) GetFrom

func (*ListCredentialRequest_RangeQuery) GetTo

func (*ListCredentialRequest_RangeQuery) ProtoMessage

func (*ListCredentialRequest_RangeQuery) ProtoMessage()

func (*ListCredentialRequest_RangeQuery) ProtoReflect

func (*ListCredentialRequest_RangeQuery) Reset

func (*ListCredentialRequest_RangeQuery) String

type ListCredentialRequest_RangeQuery_

type ListCredentialRequest_RangeQuery_ struct {
	// range_query specifies the index key from/to values to use for the range query.
	RangeQuery *ListCredentialRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"`
}

type ListCredentialResponse

type ListCredentialResponse struct {

	// values are the results of the query.
	Values []*Credential `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// pagination is the pagination response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

ListCredentialResponse is the StateQuery/ListCredentialResponse response type.

func (*ListCredentialResponse) Descriptor deprecated

func (*ListCredentialResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCredentialResponse.ProtoReflect.Descriptor instead.

func (*ListCredentialResponse) GetPagination

func (x *ListCredentialResponse) GetPagination() *v1beta1.PageResponse

func (*ListCredentialResponse) GetValues

func (x *ListCredentialResponse) GetValues() []*Credential

func (*ListCredentialResponse) ProtoMessage

func (*ListCredentialResponse) ProtoMessage()

func (*ListCredentialResponse) ProtoReflect

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

func (*ListCredentialResponse) Reset

func (x *ListCredentialResponse) Reset()

func (*ListCredentialResponse) String

func (x *ListCredentialResponse) String() string

type ListProfileRequest added in v0.14.1

type ListProfileRequest struct {

	// query specifies the type of query - either a prefix or range query.
	//
	// Types that are assignable to Query:
	//
	//	*ListProfileRequest_PrefixQuery
	//	*ListProfileRequest_RangeQuery_
	Query isListProfileRequest_Query `protobuf_oneof:"query"`
	// pagination specifies optional pagination parameters.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

ListProfileRequest is the StateQuery/ListProfileRequest request type.

func (*ListProfileRequest) Descriptor deprecated added in v0.14.1

func (*ListProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProfileRequest.ProtoReflect.Descriptor instead.

func (*ListProfileRequest) GetPagination added in v0.14.1

func (x *ListProfileRequest) GetPagination() *v1beta1.PageRequest

func (*ListProfileRequest) GetPrefixQuery added in v0.14.1

func (x *ListProfileRequest) GetPrefixQuery() *ListProfileRequest_IndexKey

func (*ListProfileRequest) GetQuery added in v0.14.1

func (m *ListProfileRequest) GetQuery() isListProfileRequest_Query

func (*ListProfileRequest) GetRangeQuery added in v0.14.1

func (*ListProfileRequest) ProtoMessage added in v0.14.1

func (*ListProfileRequest) ProtoMessage()

func (*ListProfileRequest) ProtoReflect added in v0.14.1

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

func (*ListProfileRequest) Reset added in v0.14.1

func (x *ListProfileRequest) Reset()

func (*ListProfileRequest) String added in v0.14.1

func (x *ListProfileRequest) String() string

type ListProfileRequest_IndexKey added in v0.14.1

type ListProfileRequest_IndexKey struct {

	// key specifies the index key value.
	//
	// Types that are assignable to Key:
	//
	//	*ListProfileRequest_IndexKey_Index_
	//	*ListProfileRequest_IndexKey_OriginAuthority_
	Key isListProfileRequest_IndexKey_Key `protobuf_oneof:"key"`
	// contains filtered or unexported fields
}

IndexKey specifies the value of an index key to use in prefix and range queries.

func (*ListProfileRequest_IndexKey) Descriptor deprecated added in v0.14.1

func (*ListProfileRequest_IndexKey) Descriptor() ([]byte, []int)

Deprecated: Use ListProfileRequest_IndexKey.ProtoReflect.Descriptor instead.

func (*ListProfileRequest_IndexKey) GetIndex added in v0.14.1

func (*ListProfileRequest_IndexKey) GetKey added in v0.14.1

func (m *ListProfileRequest_IndexKey) GetKey() isListProfileRequest_IndexKey_Key

func (*ListProfileRequest_IndexKey) GetOriginAuthority added in v0.14.1

func (*ListProfileRequest_IndexKey) ProtoMessage added in v0.14.1

func (*ListProfileRequest_IndexKey) ProtoMessage()

func (*ListProfileRequest_IndexKey) ProtoReflect added in v0.14.1

func (*ListProfileRequest_IndexKey) Reset added in v0.14.1

func (x *ListProfileRequest_IndexKey) Reset()

func (*ListProfileRequest_IndexKey) String added in v0.14.1

func (x *ListProfileRequest_IndexKey) String() string

type ListProfileRequest_IndexKey_Index added in v0.14.1

type ListProfileRequest_IndexKey_Index struct {

	// index is the value of the index field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Index *uint64 `protobuf:"varint,1,opt,name=index,proto3,oneof" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProfileRequest_IndexKey_Index) Descriptor deprecated added in v0.14.1

func (*ListProfileRequest_IndexKey_Index) Descriptor() ([]byte, []int)

Deprecated: Use ListProfileRequest_IndexKey_Index.ProtoReflect.Descriptor instead.

func (*ListProfileRequest_IndexKey_Index) GetIndex added in v0.14.1

func (*ListProfileRequest_IndexKey_Index) ProtoMessage added in v0.14.1

func (*ListProfileRequest_IndexKey_Index) ProtoMessage()

func (*ListProfileRequest_IndexKey_Index) ProtoReflect added in v0.14.1

func (*ListProfileRequest_IndexKey_Index) Reset added in v0.14.1

func (*ListProfileRequest_IndexKey_Index) String added in v0.14.1

type ListProfileRequest_IndexKey_Index_ added in v0.14.1

type ListProfileRequest_IndexKey_Index_ struct {
	// index specifies the value of the Index index key to use in the query.
	Index *ListProfileRequest_IndexKey_Index `protobuf:"bytes,1,opt,name=index,proto3,oneof"`
}

type ListProfileRequest_IndexKey_OriginAuthority added in v0.14.1

type ListProfileRequest_IndexKey_OriginAuthority struct {

	// origin is the value of the origin field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Origin *string `protobuf:"bytes,1,opt,name=origin,proto3,oneof" json:"origin,omitempty"`
	// authority is the value of the authority field in the index.
	// It can be omitted to query for all valid values of that field in this segment of the index.
	Authority *string `protobuf:"bytes,2,opt,name=authority,proto3,oneof" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProfileRequest_IndexKey_OriginAuthority) Descriptor deprecated added in v0.14.1

Deprecated: Use ListProfileRequest_IndexKey_OriginAuthority.ProtoReflect.Descriptor instead.

func (*ListProfileRequest_IndexKey_OriginAuthority) GetAuthority added in v0.14.1

func (*ListProfileRequest_IndexKey_OriginAuthority) GetOrigin added in v0.14.1

func (*ListProfileRequest_IndexKey_OriginAuthority) ProtoMessage added in v0.14.1

func (*ListProfileRequest_IndexKey_OriginAuthority) ProtoReflect added in v0.14.1

func (*ListProfileRequest_IndexKey_OriginAuthority) Reset added in v0.14.1

func (*ListProfileRequest_IndexKey_OriginAuthority) String added in v0.14.1

type ListProfileRequest_IndexKey_OriginAuthority_ added in v0.14.1

type ListProfileRequest_IndexKey_OriginAuthority_ struct {
	// origin_authority specifies the value of the OriginAuthority index key to use in the query.
	OriginAuthority *ListProfileRequest_IndexKey_OriginAuthority `protobuf:"bytes,2,opt,name=origin_authority,json=originAuthority,proto3,oneof"`
}

type ListProfileRequest_PrefixQuery added in v0.14.1

type ListProfileRequest_PrefixQuery struct {
	// prefix_query specifies the index key value to use for the prefix query.
	PrefixQuery *ListProfileRequest_IndexKey `protobuf:"bytes,1,opt,name=prefix_query,json=prefixQuery,proto3,oneof"`
}

type ListProfileRequest_RangeQuery added in v0.14.1

type ListProfileRequest_RangeQuery struct {

	// from is the index key to use for the start of the range query.
	// To query from the start of an index, specify an index key for that index with empty values.
	From *ListProfileRequest_IndexKey `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// to is the index key to use for the end of the range query.
	// The index key type MUST be the same as the index key type used for from.
	// To query from to the end of an index it can be omitted.
	To *ListProfileRequest_IndexKey `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

RangeQuery specifies the from/to index keys for a range query.

func (*ListProfileRequest_RangeQuery) Descriptor deprecated added in v0.14.1

func (*ListProfileRequest_RangeQuery) Descriptor() ([]byte, []int)

Deprecated: Use ListProfileRequest_RangeQuery.ProtoReflect.Descriptor instead.

func (*ListProfileRequest_RangeQuery) GetFrom added in v0.14.1

func (*ListProfileRequest_RangeQuery) GetTo added in v0.14.1

func (*ListProfileRequest_RangeQuery) ProtoMessage added in v0.14.1

func (*ListProfileRequest_RangeQuery) ProtoMessage()

func (*ListProfileRequest_RangeQuery) ProtoReflect added in v0.14.1

func (*ListProfileRequest_RangeQuery) Reset added in v0.14.1

func (x *ListProfileRequest_RangeQuery) Reset()

func (*ListProfileRequest_RangeQuery) String added in v0.14.1

type ListProfileRequest_RangeQuery_ added in v0.14.1

type ListProfileRequest_RangeQuery_ struct {
	// range_query specifies the index key from/to values to use for the range query.
	RangeQuery *ListProfileRequest_RangeQuery `protobuf:"bytes,2,opt,name=range_query,json=rangeQuery,proto3,oneof"`
}

type ListProfileResponse added in v0.14.1

type ListProfileResponse struct {

	// values are the results of the query.
	Values []*Profile `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// pagination is the pagination response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

ListProfileResponse is the StateQuery/ListProfileResponse response type.

func (*ListProfileResponse) Descriptor deprecated added in v0.14.1

func (*ListProfileResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProfileResponse.ProtoReflect.Descriptor instead.

func (*ListProfileResponse) GetPagination added in v0.14.1

func (x *ListProfileResponse) GetPagination() *v1beta1.PageResponse

func (*ListProfileResponse) GetValues added in v0.14.1

func (x *ListProfileResponse) GetValues() []*Profile

func (*ListProfileResponse) ProtoMessage added in v0.14.1

func (*ListProfileResponse) ProtoMessage()

func (*ListProfileResponse) ProtoReflect added in v0.14.1

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

func (*ListProfileResponse) Reset added in v0.14.1

func (x *ListProfileResponse) Reset()

func (*ListProfileResponse) String added in v0.14.1

func (x *ListProfileResponse) String() string

type Module

type Module struct {

	// authority defines the custom module authority.
	// if not set, defaults to the governance module.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

Module is the app config object of the module. Learn more: https://docs.cosmos.network/main/building-modules/depinject

func (*Module) Descriptor deprecated

func (*Module) Descriptor() ([]byte, []int)

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetAuthority

func (x *Module) GetAuthority() string

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

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

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type Profile added in v0.14.1

type Profile struct {
	Index     uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Origin    string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	Key       string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value     string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	Authority string `protobuf:"bytes,5,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

Service is the balance of an account.

func (*Profile) Descriptor deprecated added in v0.14.1

func (*Profile) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAuthority added in v0.14.1

func (x *Profile) GetAuthority() string

func (*Profile) GetIndex added in v0.14.1

func (x *Profile) GetIndex() uint64

func (*Profile) GetKey added in v0.14.1

func (x *Profile) GetKey() string

func (*Profile) GetOrigin added in v0.14.1

func (x *Profile) GetOrigin() string

func (*Profile) GetValue added in v0.14.1

func (x *Profile) GetValue() string

func (*Profile) ProtoMessage added in v0.14.1

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect added in v0.14.1

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

func (*Profile) Reset added in v0.14.1

func (x *Profile) Reset()

func (*Profile) String added in v0.14.1

func (x *Profile) String() string

type ProfileIndexIndexKey added in v0.14.1

type ProfileIndexIndexKey struct {
	// contains filtered or unexported fields
}

func (ProfileIndexIndexKey) WithIndex added in v0.14.1

func (this ProfileIndexIndexKey) WithIndex(index uint64) ProfileIndexIndexKey

type ProfileIndexKey added in v0.14.1

type ProfileIndexKey interface {
	// contains filtered or unexported methods
}

type ProfileIterator added in v0.14.1

type ProfileIterator struct {
	ormtable.Iterator
}

func (ProfileIterator) Value added in v0.14.1

func (i ProfileIterator) Value() (*Profile, error)

type ProfileOriginAuthorityIndexKey added in v0.14.1

type ProfileOriginAuthorityIndexKey struct {
	// contains filtered or unexported fields
}

func (ProfileOriginAuthorityIndexKey) WithOrigin added in v0.14.1

func (ProfileOriginAuthorityIndexKey) WithOriginAuthority added in v0.14.1

func (this ProfileOriginAuthorityIndexKey) WithOriginAuthority(origin string, authority string) ProfileOriginAuthorityIndexKey

type ProfilePrimaryKey added in v0.14.1

type ProfilePrimaryKey = ProfileIndexIndexKey

primary key starting index..

type ProfileTable added in v0.14.1

type ProfileTable interface {
	Insert(ctx context.Context, profile *Profile) error
	InsertReturningIndex(ctx context.Context, profile *Profile) (uint64, error)
	LastInsertedSequence(ctx context.Context) (uint64, error)
	Update(ctx context.Context, profile *Profile) error
	Save(ctx context.Context, profile *Profile) error
	Delete(ctx context.Context, profile *Profile) error
	Has(ctx context.Context, index uint64) (found bool, err error)
	// Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	Get(ctx context.Context, index uint64) (*Profile, error)
	HasByOriginAuthority(ctx context.Context, origin string, authority string) (found bool, err error)
	// GetByOriginAuthority returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByOriginAuthority(ctx context.Context, origin string, authority string) (*Profile, error)
	List(ctx context.Context, prefixKey ProfileIndexKey, opts ...ormlist.Option) (ProfileIterator, error)
	ListRange(ctx context.Context, from, to ProfileIndexKey, opts ...ormlist.Option) (ProfileIterator, error)
	DeleteBy(ctx context.Context, prefixKey ProfileIndexKey) error
	DeleteRange(ctx context.Context, from, to ProfileIndexKey) error
	// contains filtered or unexported methods
}

func NewProfileTable added in v0.14.1

func NewProfileTable(db ormtable.Schema) (ProfileTable, error)

type State

type State struct {
	// contains filtered or unexported fields
}

Module is the app config object of the module. Learn more: https://docs.cosmos.network/main/building-modules/depinject

func (*State) Descriptor deprecated

func (*State) Descriptor() ([]byte, []int)

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

type StateQueryServiceClient

type StateQueryServiceClient interface {
	// Get queries the Credential table by its primary key.
	GetCredential(ctx context.Context, in *GetCredentialRequest, opts ...grpc.CallOption) (*GetCredentialResponse, error)
	// GetCredentialByOriginHandle queries the Credential table by its OriginHandle index
	GetCredentialByOriginHandle(ctx context.Context, in *GetCredentialByOriginHandleRequest, opts ...grpc.CallOption) (*GetCredentialByOriginHandleResponse, error)
	// GetCredentialById queries the Credential table by its Id index
	GetCredentialById(ctx context.Context, in *GetCredentialByIdRequest, opts ...grpc.CallOption) (*GetCredentialByIdResponse, error)
	// GetCredentialByOriginAuthority queries the Credential table by its OriginAuthority index
	GetCredentialByOriginAuthority(ctx context.Context, in *GetCredentialByOriginAuthorityRequest, opts ...grpc.CallOption) (*GetCredentialByOriginAuthorityResponse, error)
	// ListCredential queries the Credential table using prefix and range queries against defined indexes.
	ListCredential(ctx context.Context, in *ListCredentialRequest, opts ...grpc.CallOption) (*ListCredentialResponse, error)
	// Get queries the Profile table by its primary key.
	GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error)
	// GetProfileByOriginAuthority queries the Profile table by its OriginAuthority index
	GetProfileByOriginAuthority(ctx context.Context, in *GetProfileByOriginAuthorityRequest, opts ...grpc.CallOption) (*GetProfileByOriginAuthorityResponse, error)
	// ListProfile queries the Profile table using prefix and range queries against defined indexes.
	ListProfile(ctx context.Context, in *ListProfileRequest, opts ...grpc.CallOption) (*ListProfileResponse, error)
}

StateQueryServiceClient is the client API for StateQueryService 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.

type StateQueryServiceServer

type StateQueryServiceServer interface {
	// Get queries the Credential table by its primary key.
	GetCredential(context.Context, *GetCredentialRequest) (*GetCredentialResponse, error)
	// GetCredentialByOriginHandle queries the Credential table by its OriginHandle index
	GetCredentialByOriginHandle(context.Context, *GetCredentialByOriginHandleRequest) (*GetCredentialByOriginHandleResponse, error)
	// GetCredentialById queries the Credential table by its Id index
	GetCredentialById(context.Context, *GetCredentialByIdRequest) (*GetCredentialByIdResponse, error)
	// GetCredentialByOriginAuthority queries the Credential table by its OriginAuthority index
	GetCredentialByOriginAuthority(context.Context, *GetCredentialByOriginAuthorityRequest) (*GetCredentialByOriginAuthorityResponse, error)
	// ListCredential queries the Credential table using prefix and range queries against defined indexes.
	ListCredential(context.Context, *ListCredentialRequest) (*ListCredentialResponse, error)
	// Get queries the Profile table by its primary key.
	GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
	// GetProfileByOriginAuthority queries the Profile table by its OriginAuthority index
	GetProfileByOriginAuthority(context.Context, *GetProfileByOriginAuthorityRequest) (*GetProfileByOriginAuthorityResponse, error)
	// ListProfile queries the Profile table using prefix and range queries against defined indexes.
	ListProfile(context.Context, *ListProfileRequest) (*ListProfileResponse, error)
	// contains filtered or unexported methods
}

StateQueryServiceServer is the server API for StateQueryService service. All implementations must embed UnimplementedStateQueryServiceServer for forward compatibility

type StateStore

type StateStore interface {
	CredentialTable() CredentialTable
	ProfileTable() ProfileTable
	// contains filtered or unexported methods
}

func NewStateStore

func NewStateStore(db ormtable.Schema) (StateStore, error)

type UnimplementedStateQueryServiceServer

type UnimplementedStateQueryServiceServer struct {
}

UnimplementedStateQueryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStateQueryServiceServer) GetCredential

func (UnimplementedStateQueryServiceServer) GetCredentialById added in v0.14.0

func (UnimplementedStateQueryServiceServer) GetCredentialByOriginAuthority added in v0.14.0

func (UnimplementedStateQueryServiceServer) GetProfile added in v0.14.1

func (UnimplementedStateQueryServiceServer) GetProfileByOriginAuthority added in v0.14.1

func (UnimplementedStateQueryServiceServer) ListCredential

func (UnimplementedStateQueryServiceServer) ListProfile added in v0.14.1

type UnsafeStateQueryServiceServer

type UnsafeStateQueryServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeStateQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StateQueryServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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