servicev1

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: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Query_Params_FullMethodName             = "/sonr.service.v1.Query/Params"
	Query_ServiceRecord_FullMethodName      = "/sonr.service.v1.Query/ServiceRecord"
	Query_WebauthnCredential_FullMethodName = "/sonr.service.v1.Query/WebauthnCredential"
)
View Source
const (
	Msg_CreateRecord_FullMethodName    = "/sonr.service.v1.Msg/CreateRecord"
	Msg_UpdateRecord_FullMethodName    = "/sonr.service.v1.Msg/UpdateRecord"
	Msg_DeleteRecord_FullMethodName    = "/sonr.service.v1.Msg/DeleteRecord"
	Msg_UpdateParams_FullMethodName    = "/sonr.service.v1.Msg/UpdateParams"
	Msg_RegisterAccount_FullMethodName = "/sonr.service.v1.Msg/RegisterAccount"
	Msg_LoginAccount_FullMethodName    = "/sonr.service.v1.Msg/LoginAccount"
)

Variables

View Source
var (
	ParamsType_name = map[int32]string{
		0: "PARAMS_TYPE_UNSPECIFIED",
		1: "PARAMS_TYPE_ATTESTATION",
		2: "PARAMS_TYPE_ASSERTION",
	}
	ParamsType_value = map[string]int32{
		"PARAMS_TYPE_UNSPECIFIED": 0,
		"PARAMS_TYPE_ATTESTATION": 1,
		"PARAMS_TYPE_ASSERTION":   2,
	}
)

Enum value maps for ParamsType.

View Source
var File_sonr_service_v1_query_proto protoreflect.FileDescriptor
View Source
var File_sonr_service_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_sonr_service_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sonr.service.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRecord",
			Handler:    _Msg_CreateRecord_Handler,
		},
		{
			MethodName: "UpdateRecord",
			Handler:    _Msg_UpdateRecord_Handler,
		},
		{
			MethodName: "DeleteRecord",
			Handler:    _Msg_DeleteRecord_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "RegisterAccount",
			Handler:    _Msg_RegisterAccount_Handler,
		},
		{
			MethodName: "LoginAccount",
			Handler:    _Msg_LoginAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sonr/service/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: "sonr.service.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "ServiceRecord",
			Handler:    _Query_ServiceRecord_Handler,
		},
		{
			MethodName: "WebauthnCredential",
			Handler:    _Query_WebauthnCredential_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sonr/service/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 GenesisState

type GenesisState struct {
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,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) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetRecords added in v0.14.1

func (x *GenesisState) GetRecords() []*Record

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 {
	// CreateRecord creates a new record
	CreateRecord(ctx context.Context, in *MsgCreateRecord, opts ...grpc.CallOption) (*MsgCreateRecordResponse, error)
	// UpdateRecord updates a record
	UpdateRecord(ctx context.Context, in *MsgUpdateRecord, opts ...grpc.CallOption) (*MsgUpdateRecordResponse, error)
	// DeleteRecord deletes a record
	DeleteRecord(ctx context.Context, in *MsgDeleteRecord, opts ...grpc.CallOption) (*MsgDeleteRecordResponse, error)
	// UpdateParams updates the module parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// RegisterAccount registers an account by using the x/identity module
	RegisterAccount(ctx context.Context, in *MsgRegisterAccount, opts ...grpc.CallOption) (*MsgRegisterAccountResponse, error)
	// LoginAccount logs in an account by using the x/identity module
	LoginAccount(ctx context.Context, in *MsgLoginAccount, opts ...grpc.CallOption) (*MsgLoginAccountResponse, 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 MsgCreateRecord

type MsgCreateRecord struct {

	// owner is the address of the owner of the record
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// name is the name of the record
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// description is the description of the record
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// origin is the origin of the record
	Origin string `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"`
	// permissions in int32 format
	Permissions int32 `protobuf:"varint,5,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateRecord is the Msg/CreateRecord request type.

func (*MsgCreateRecord) Descriptor deprecated

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

Deprecated: Use MsgCreateRecord.ProtoReflect.Descriptor instead.

func (*MsgCreateRecord) GetAuthority

func (x *MsgCreateRecord) GetAuthority() string

func (*MsgCreateRecord) GetDescription

func (x *MsgCreateRecord) GetDescription() string

func (*MsgCreateRecord) GetName

func (x *MsgCreateRecord) GetName() string

func (*MsgCreateRecord) GetOrigin

func (x *MsgCreateRecord) GetOrigin() string

func (*MsgCreateRecord) GetPermissions

func (x *MsgCreateRecord) GetPermissions() int32

func (*MsgCreateRecord) ProtoMessage

func (*MsgCreateRecord) ProtoMessage()

func (*MsgCreateRecord) ProtoReflect

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

func (*MsgCreateRecord) Reset

func (x *MsgCreateRecord) Reset()

func (*MsgCreateRecord) String

func (x *MsgCreateRecord) String() string

type MsgCreateRecordResponse

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

MsgCreateRecordResponse defines the Msg/CreateRecord response type.

func (*MsgCreateRecordResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateRecordResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateRecordResponse) ProtoMessage

func (*MsgCreateRecordResponse) ProtoMessage()

func (*MsgCreateRecordResponse) ProtoReflect

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

func (*MsgCreateRecordResponse) Reset

func (x *MsgCreateRecordResponse) Reset()

func (*MsgCreateRecordResponse) String

func (x *MsgCreateRecordResponse) String() string

type MsgDeleteRecord

type MsgDeleteRecord struct {

	// owner is the address of the owner of the record
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// origin is the id of the record to delete
	Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

MsgDeleteRecord is the Msg/DeleteRecord request type.

func (*MsgDeleteRecord) Descriptor deprecated

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

Deprecated: Use MsgDeleteRecord.ProtoReflect.Descriptor instead.

func (*MsgDeleteRecord) GetAuthority

func (x *MsgDeleteRecord) GetAuthority() string

func (*MsgDeleteRecord) GetOrigin added in v0.14.0

func (x *MsgDeleteRecord) GetOrigin() string

func (*MsgDeleteRecord) ProtoMessage

func (*MsgDeleteRecord) ProtoMessage()

func (*MsgDeleteRecord) ProtoReflect

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

func (*MsgDeleteRecord) Reset

func (x *MsgDeleteRecord) Reset()

func (*MsgDeleteRecord) String

func (x *MsgDeleteRecord) String() string

type MsgDeleteRecordResponse

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

MsgDeleteRecordResponse defines the Msg/DeleteRecord response type.

func (*MsgDeleteRecordResponse) Descriptor deprecated

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

Deprecated: Use MsgDeleteRecordResponse.ProtoReflect.Descriptor instead.

func (*MsgDeleteRecordResponse) ProtoMessage

func (*MsgDeleteRecordResponse) ProtoMessage()

func (*MsgDeleteRecordResponse) ProtoReflect

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

func (*MsgDeleteRecordResponse) Reset

func (x *MsgDeleteRecordResponse) Reset()

func (*MsgDeleteRecordResponse) String

func (x *MsgDeleteRecordResponse) String() string

type MsgLoginAccount added in v0.13.10

type MsgLoginAccount 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"`
	// origin is the origin of the account
	Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// handle is the handle of the account
	Handle string `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
	// AssertionResponse is the response from the assertion
	AssertionResponse string `protobuf:"bytes,4,opt,name=assertion_response,json=assertionResponse,proto3" json:"assertion_response,omitempty"`
	// contains filtered or unexported fields
}

MsgLoginAccount is the Msg/LoginAccount request type.

func (*MsgLoginAccount) Descriptor deprecated added in v0.13.10

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

Deprecated: Use MsgLoginAccount.ProtoReflect.Descriptor instead.

func (*MsgLoginAccount) GetAssertionResponse added in v0.14.0

func (x *MsgLoginAccount) GetAssertionResponse() string

func (*MsgLoginAccount) GetAuthority added in v0.13.10

func (x *MsgLoginAccount) GetAuthority() string

func (*MsgLoginAccount) GetHandle added in v0.13.10

func (x *MsgLoginAccount) GetHandle() string

func (*MsgLoginAccount) GetOrigin added in v0.13.10

func (x *MsgLoginAccount) GetOrigin() string

func (*MsgLoginAccount) ProtoMessage added in v0.13.10

func (*MsgLoginAccount) ProtoMessage()

func (*MsgLoginAccount) ProtoReflect added in v0.13.10

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

func (*MsgLoginAccount) Reset added in v0.13.10

func (x *MsgLoginAccount) Reset()

func (*MsgLoginAccount) String added in v0.13.10

func (x *MsgLoginAccount) String() string

type MsgLoginAccountResponse added in v0.13.10

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

MsgLoginAccountResponse defines the response structure for executing a Login request.

func (*MsgLoginAccountResponse) Descriptor deprecated added in v0.13.10

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

Deprecated: Use MsgLoginAccountResponse.ProtoReflect.Descriptor instead.

func (*MsgLoginAccountResponse) ProtoMessage added in v0.13.10

func (*MsgLoginAccountResponse) ProtoMessage()

func (*MsgLoginAccountResponse) ProtoReflect added in v0.13.10

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

func (*MsgLoginAccountResponse) Reset added in v0.13.10

func (x *MsgLoginAccountResponse) Reset()

func (*MsgLoginAccountResponse) String added in v0.13.10

func (x *MsgLoginAccountResponse) String() string

type MsgRegisterAccount added in v0.13.10

type MsgRegisterAccount 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"`
	// origin is the origin of the account
	Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// handle is the handle of the account
	Handle string `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
	// AttestationResponse is the response from the attestation
	AttestationResponse string `protobuf:"bytes,4,opt,name=attestation_response,json=attestationResponse,proto3" json:"attestation_response,omitempty"`
	// contains filtered or unexported fields
}

MsgRegisterAccount is the Msg/RegisterAccount request type.

func (*MsgRegisterAccount) Descriptor deprecated added in v0.13.10

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

Deprecated: Use MsgRegisterAccount.ProtoReflect.Descriptor instead.

func (*MsgRegisterAccount) GetAttestationResponse added in v0.14.0

func (x *MsgRegisterAccount) GetAttestationResponse() string

func (*MsgRegisterAccount) GetAuthority added in v0.13.10

func (x *MsgRegisterAccount) GetAuthority() string

func (*MsgRegisterAccount) GetHandle added in v0.13.10

func (x *MsgRegisterAccount) GetHandle() string

func (*MsgRegisterAccount) GetOrigin added in v0.13.10

func (x *MsgRegisterAccount) GetOrigin() string

func (*MsgRegisterAccount) ProtoMessage added in v0.13.10

func (*MsgRegisterAccount) ProtoMessage()

func (*MsgRegisterAccount) ProtoReflect added in v0.13.10

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

func (*MsgRegisterAccount) Reset added in v0.13.10

func (x *MsgRegisterAccount) Reset()

func (*MsgRegisterAccount) String added in v0.13.10

func (x *MsgRegisterAccount) String() string

type MsgRegisterAccountResponse added in v0.13.10

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

MsgRegisterAccountResponse defines the response structure for executing a Register request.

func (*MsgRegisterAccountResponse) Descriptor deprecated added in v0.13.10

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

Deprecated: Use MsgRegisterAccountResponse.ProtoReflect.Descriptor instead.

func (*MsgRegisterAccountResponse) ProtoMessage added in v0.13.10

func (*MsgRegisterAccountResponse) ProtoMessage()

func (*MsgRegisterAccountResponse) ProtoReflect added in v0.13.10

func (*MsgRegisterAccountResponse) Reset added in v0.13.10

func (x *MsgRegisterAccountResponse) Reset()

func (*MsgRegisterAccountResponse) String added in v0.13.10

func (x *MsgRegisterAccountResponse) String() string

type MsgServer

type MsgServer interface {
	// CreateRecord creates a new record
	CreateRecord(context.Context, *MsgCreateRecord) (*MsgCreateRecordResponse, error)
	// UpdateRecord updates a record
	UpdateRecord(context.Context, *MsgUpdateRecord) (*MsgUpdateRecordResponse, error)
	// DeleteRecord deletes a record
	DeleteRecord(context.Context, *MsgDeleteRecord) (*MsgDeleteRecordResponse, error)
	// UpdateParams updates the module parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// RegisterAccount registers an account by using the x/identity module
	RegisterAccount(context.Context, *MsgRegisterAccount) (*MsgRegisterAccountResponse, error)
	// LoginAccount logs in an account by using the x/identity module
	LoginAccount(context.Context, *MsgLoginAccount) (*MsgLoginAccountResponse, 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 MsgUpdateRecord

type MsgUpdateRecord struct {

	// owner is the address of the owner of the record
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// record_id is the id of the record to update
	RecordId uint64 `protobuf:"varint,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	// name is the name of the record
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// description is the description of the record
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// origin is the origin of the record
	Origin string `protobuf:"bytes,5,opt,name=origin,proto3" json:"origin,omitempty"`
	// permissions in int32 format
	Permissions int32 `protobuf:"varint,6,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateRecord is the Msg/UpdateRecord request type.

func (*MsgUpdateRecord) Descriptor deprecated

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

Deprecated: Use MsgUpdateRecord.ProtoReflect.Descriptor instead.

func (*MsgUpdateRecord) GetAuthority

func (x *MsgUpdateRecord) GetAuthority() string

func (*MsgUpdateRecord) GetDescription

func (x *MsgUpdateRecord) GetDescription() string

func (*MsgUpdateRecord) GetName

func (x *MsgUpdateRecord) GetName() string

func (*MsgUpdateRecord) GetOrigin

func (x *MsgUpdateRecord) GetOrigin() string

func (*MsgUpdateRecord) GetPermissions

func (x *MsgUpdateRecord) GetPermissions() int32

func (*MsgUpdateRecord) GetRecordId

func (x *MsgUpdateRecord) GetRecordId() uint64

func (*MsgUpdateRecord) ProtoMessage

func (*MsgUpdateRecord) ProtoMessage()

func (*MsgUpdateRecord) ProtoReflect

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

func (*MsgUpdateRecord) Reset

func (x *MsgUpdateRecord) Reset()

func (*MsgUpdateRecord) String

func (x *MsgUpdateRecord) String() string

type MsgUpdateRecordResponse

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

MsgUpdateRecordResponse defines the Msg/UpdateRecord response type.

func (*MsgUpdateRecordResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateRecordResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateRecordResponse) ProtoMessage

func (*MsgUpdateRecordResponse) ProtoMessage()

func (*MsgUpdateRecordResponse) ProtoReflect

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

func (*MsgUpdateRecordResponse) Reset

func (x *MsgUpdateRecordResponse) Reset()

func (*MsgUpdateRecordResponse) String

func (x *MsgUpdateRecordResponse) 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 ParamsType

type ParamsType int32

ParamsType defines the type of params

const (
	// PARAMS_TYPE_UNSPECIFIED is the default parameter type
	ParamsType_PARAMS_TYPE_UNSPECIFIED ParamsType = 0
	// PARAMS_TYPE_ATTESTATION is for the attestation params
	ParamsType_PARAMS_TYPE_ATTESTATION ParamsType = 1
	// PARAMS_TYPE_ASSERTION is for the assertion params
	ParamsType_PARAMS_TYPE_ASSERTION ParamsType = 2
)

func (ParamsType) Descriptor

func (ParamsType) Descriptor() protoreflect.EnumDescriptor

func (ParamsType) Enum

func (x ParamsType) Enum() *ParamsType

func (ParamsType) EnumDescriptor deprecated

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

Deprecated: Use ParamsType.Descriptor instead.

func (ParamsType) Number

func (x ParamsType) Number() protoreflect.EnumNumber

func (ParamsType) String

func (x ParamsType) String() string

func (ParamsType) Type

type QueryClient

type QueryClient interface {
	// Params returns the module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// ServiceRecord returns the service record for a given origin.
	ServiceRecord(ctx context.Context, in *QueryServiceRecordRequest, opts ...grpc.CallOption) (*QueryServiceRecordResponse, error)
	// WebauthnCredential returns the webauthn credential for a given origin.
	WebauthnCredential(ctx context.Context, in *QueryWebauthnCredentialRequest, opts ...grpc.CallOption) (*QueryWebauthnCredentialResponse, 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)
	// ServiceRecord returns the service record for a given origin.
	ServiceRecord(context.Context, *QueryServiceRecordRequest) (*QueryServiceRecordResponse, error)
	// WebauthnCredential returns the webauthn credential for a given origin.
	WebauthnCredential(context.Context, *QueryWebauthnCredentialRequest) (*QueryWebauthnCredentialResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryServiceRecordRequest added in v0.14.0

type QueryServiceRecordRequest struct {

	// origin defines the origin of the service.
	Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

QueryServiceRecordRequest is the request type for the Query/ServiceRecord RPC method.

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

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

Deprecated: Use QueryServiceRecordRequest.ProtoReflect.Descriptor instead.

func (*QueryServiceRecordRequest) GetOrigin added in v0.14.0

func (x *QueryServiceRecordRequest) GetOrigin() string

func (*QueryServiceRecordRequest) ProtoMessage added in v0.14.0

func (*QueryServiceRecordRequest) ProtoMessage()

func (*QueryServiceRecordRequest) ProtoReflect added in v0.14.0

func (*QueryServiceRecordRequest) Reset added in v0.14.0

func (x *QueryServiceRecordRequest) Reset()

func (*QueryServiceRecordRequest) String added in v0.14.0

func (x *QueryServiceRecordRequest) String() string

type QueryServiceRecordResponse added in v0.14.0

type QueryServiceRecordResponse struct {

	// service_record defines the service record for a given origin.
	ServiceRecord *Record `protobuf:"bytes,1,opt,name=service_record,json=serviceRecord,proto3" json:"service_record,omitempty"`
	// contains filtered or unexported fields
}

QueryServiceRecordResponse is the response type for the Query/ServiceRecord RPC method.

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

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

Deprecated: Use QueryServiceRecordResponse.ProtoReflect.Descriptor instead.

func (*QueryServiceRecordResponse) GetServiceRecord added in v0.14.0

func (x *QueryServiceRecordResponse) GetServiceRecord() *Record

func (*QueryServiceRecordResponse) ProtoMessage added in v0.14.0

func (*QueryServiceRecordResponse) ProtoMessage()

func (*QueryServiceRecordResponse) ProtoReflect added in v0.14.0

func (*QueryServiceRecordResponse) Reset added in v0.14.0

func (x *QueryServiceRecordResponse) Reset()

func (*QueryServiceRecordResponse) String added in v0.14.0

func (x *QueryServiceRecordResponse) String() string

type QueryWebauthnCredentialRequest added in v0.14.0

type QueryWebauthnCredentialRequest struct {

	// origin defines the origin of the service.
	Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	// handle defines the handle of the webauthn credential.
	Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

QueryWebauthnCredentialRequest is the request type for the Query/WebauthnCredential RPC method.

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

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

Deprecated: Use QueryWebauthnCredentialRequest.ProtoReflect.Descriptor instead.

func (*QueryWebauthnCredentialRequest) GetHandle added in v0.14.0

func (x *QueryWebauthnCredentialRequest) GetHandle() string

func (*QueryWebauthnCredentialRequest) GetOrigin added in v0.14.0

func (x *QueryWebauthnCredentialRequest) GetOrigin() string

func (*QueryWebauthnCredentialRequest) ProtoMessage added in v0.14.0

func (*QueryWebauthnCredentialRequest) ProtoMessage()

func (*QueryWebauthnCredentialRequest) ProtoReflect added in v0.14.0

func (*QueryWebauthnCredentialRequest) Reset added in v0.14.0

func (x *QueryWebauthnCredentialRequest) Reset()

func (*QueryWebauthnCredentialRequest) String added in v0.14.0

type QueryWebauthnCredentialResponse added in v0.14.0

type QueryWebauthnCredentialResponse struct {

	// webauthn_credential defines the webauthn credential for a given origin.
	WebauthnCredential []*WebauthnCredential `protobuf:"bytes,1,rep,name=webauthn_credential,json=webauthnCredential,proto3" json:"webauthn_credential,omitempty"`
	// contains filtered or unexported fields
}

QueryWebauthnCredentialResponse is the response type for the Query/WebauthnCredential RPC method.

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

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

Deprecated: Use QueryWebauthnCredentialResponse.ProtoReflect.Descriptor instead.

func (*QueryWebauthnCredentialResponse) GetWebauthnCredential added in v0.14.0

func (x *QueryWebauthnCredentialResponse) GetWebauthnCredential() []*WebauthnCredential

func (*QueryWebauthnCredentialResponse) ProtoMessage added in v0.14.0

func (*QueryWebauthnCredentialResponse) ProtoMessage()

func (*QueryWebauthnCredentialResponse) ProtoReflect added in v0.14.0

func (*QueryWebauthnCredentialResponse) Reset added in v0.14.0

func (*QueryWebauthnCredentialResponse) String added in v0.14.0

type Record added in v0.14.1

type Record struct {

	// Name is the name of the service
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the description of the service
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Authority is the address of the owner of the service
	Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"`
	// Permissions is the uint32 representation of the permissions of the service
	Permissions uint32 `protobuf:"varint,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// Origin is the DNS resolvable address of the service
	Origin string `protobuf:"bytes,5,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

Record is the representation of a sonr enabled service

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

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetAuthority added in v0.14.1

func (x *Record) GetAuthority() string

func (*Record) GetDescription added in v0.14.1

func (x *Record) GetDescription() string

func (*Record) GetName added in v0.14.1

func (x *Record) GetName() string

func (*Record) GetOrigin added in v0.14.1

func (x *Record) GetOrigin() string

func (*Record) GetPermissions added in v0.14.1

func (x *Record) GetPermissions() uint32

func (*Record) ProtoMessage added in v0.14.1

func (*Record) ProtoMessage()

func (*Record) ProtoReflect added in v0.14.1

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

func (*Record) Reset added in v0.14.1

func (x *Record) Reset()

func (*Record) String added in v0.14.1

func (x *Record) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) CreateRecord

func (UnimplementedMsgServer) DeleteRecord

func (UnimplementedMsgServer) LoginAccount added in v0.13.10

func (UnimplementedMsgServer) RegisterAccount added in v0.13.10

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) UpdateRecord

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) ServiceRecord added in v0.14.0

func (UnimplementedQueryServer) WebauthnCredential added in v0.14.0

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 WebauthnCredential added in v0.14.0

type WebauthnCredential struct {

	// Assertion Type is the type of the credential
	AssertionType string `protobuf:"bytes,1,opt,name=assertion_type,json=assertionType,proto3" json:"assertion_type,omitempty"`
	// Id is the id of the credential
	Id []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// handle is the handle of the credential
	Handle string `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
	// transports is the list of transports supported by the credential
	Transports []string `protobuf:"bytes,4,rep,name=transports,proto3" json:"transports,omitempty"`
	// origin is the origin of the credential
	Origin string `protobuf:"bytes,5,opt,name=origin,proto3" json:"origin,omitempty"`
	// Authority is the address of the owner of the credential
	Authority string `protobuf:"bytes,6,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

WebauthnCredential is the representation of a webauthn credential in the format of a CredentialDescriptor

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

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

Deprecated: Use WebauthnCredential.ProtoReflect.Descriptor instead.

func (*WebauthnCredential) GetAssertionType added in v0.14.0

func (x *WebauthnCredential) GetAssertionType() string

func (*WebauthnCredential) GetAuthority added in v0.14.0

func (x *WebauthnCredential) GetAuthority() string

func (*WebauthnCredential) GetHandle added in v0.14.0

func (x *WebauthnCredential) GetHandle() string

func (*WebauthnCredential) GetId added in v0.14.0

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

func (*WebauthnCredential) GetOrigin added in v0.14.0

func (x *WebauthnCredential) GetOrigin() string

func (*WebauthnCredential) GetTransports added in v0.14.0

func (x *WebauthnCredential) GetTransports() []string

func (*WebauthnCredential) ProtoMessage added in v0.14.0

func (*WebauthnCredential) ProtoMessage()

func (*WebauthnCredential) ProtoReflect added in v0.14.0

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

func (*WebauthnCredential) Reset added in v0.14.0

func (x *WebauthnCredential) Reset()

func (*WebauthnCredential) String added in v0.14.0

func (x *WebauthnCredential) String() string

Jump to

Keyboard shortcuts

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