Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- type Identity
- func (*Identity) Descriptor() ([]byte, []int)deprecated
- func (x *Identity) GetCertificates() []string
- func (x *Identity) GetCredentials() string
- func (x *Identity) GetData() string
- func (x *Identity) GetId() string
- func (x *Identity) GetOwner() string
- func (x *Identity) GetPubKeys() []*PubKeyInfo
- func (*Identity) ProtoMessage()
- func (x *Identity) ProtoReflect() protoreflect.Message
- func (x *Identity) Reset()
- func (x *Identity) String() string
- type MsgClient
- type MsgCreateIdentity
- func (*MsgCreateIdentity) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateIdentity) GetCertificate() string
- func (x *MsgCreateIdentity) GetCredentials() string
- func (x *MsgCreateIdentity) GetData() string
- func (x *MsgCreateIdentity) GetId() string
- func (x *MsgCreateIdentity) GetOwner() string
- func (x *MsgCreateIdentity) GetPubKey() *PubKeyInfo
- func (*MsgCreateIdentity) ProtoMessage()
- func (x *MsgCreateIdentity) ProtoReflect() protoreflect.Message
- func (x *MsgCreateIdentity) Reset()
- func (x *MsgCreateIdentity) String() string
- type MsgCreateIdentityResponse
- type MsgServer
- type MsgUpdateIdentity
- func (*MsgUpdateIdentity) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateIdentity) GetCertificate() string
- func (x *MsgUpdateIdentity) GetCredentials() string
- func (x *MsgUpdateIdentity) GetData() string
- func (x *MsgUpdateIdentity) GetId() string
- func (x *MsgUpdateIdentity) GetOwner() string
- func (x *MsgUpdateIdentity) GetPubKey() *PubKeyInfo
- func (*MsgUpdateIdentity) ProtoMessage()
- func (x *MsgUpdateIdentity) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateIdentity) Reset()
- func (x *MsgUpdateIdentity) String() string
- type MsgUpdateIdentityResponse
- type PubKeyAlgorithm
- func (PubKeyAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x PubKeyAlgorithm) Enum() *PubKeyAlgorithm
- func (PubKeyAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x PubKeyAlgorithm) Number() protoreflect.EnumNumber
- func (x PubKeyAlgorithm) String() string
- func (PubKeyAlgorithm) Type() protoreflect.EnumType
- type PubKeyInfo
- func (*PubKeyInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PubKeyInfo) GetAlgorithm() PubKeyAlgorithm
- func (x *PubKeyInfo) GetPubKey() string
- func (*PubKeyInfo) ProtoMessage()
- func (x *PubKeyInfo) ProtoReflect() protoreflect.Message
- func (x *PubKeyInfo) Reset()
- func (x *PubKeyInfo) String() string
- type QueryClient
- type QueryIdentityRequest
- func (*QueryIdentityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryIdentityRequest) GetId() string
- func (*QueryIdentityRequest) ProtoMessage()
- func (x *QueryIdentityRequest) ProtoReflect() protoreflect.Message
- func (x *QueryIdentityRequest) Reset()
- func (x *QueryIdentityRequest) String() string
- type QueryIdentityResponse
- func (*QueryIdentityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryIdentityResponse) GetIdentity() *Identity
- func (*QueryIdentityResponse) ProtoMessage()
- func (x *QueryIdentityResponse) ProtoReflect() protoreflect.Message
- func (x *QueryIdentityResponse) Reset()
- func (x *QueryIdentityResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Msg_CreateIdentity_FullMethodName = "/iritamod.identity.Msg/CreateIdentity" Msg_UpdateIdentity_FullMethodName = "/iritamod.identity.Msg/UpdateIdentity" )
const (
Query_Identity_FullMethodName = "/iritamod.identity.Query/Identity"
)
Variables ¶
var ( PubKeyAlgorithm_name = map[int32]string{ 0: "UnknownPubKeyAlgorithm", 1: "RSA", 2: "DSA", 3: "ECDSA", 4: "ED25519", 5: "SM2", } PubKeyAlgorithm_value = map[string]int32{ "UnknownPubKeyAlgorithm": 0, "RSA": 1, "DSA": 2, "ECDSA": 3, "ED25519": 4, "SM2": 5, } )
Enum value maps for PubKeyAlgorithm.
var File_iritamod_identity_genesis_proto protoreflect.FileDescriptor
var File_iritamod_identity_identity_proto protoreflect.FileDescriptor
var File_iritamod_identity_query_proto protoreflect.FileDescriptor
var File_iritamod_identity_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iritamod.identity.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateIdentity", Handler: _Msg_CreateIdentity_Handler, }, { MethodName: "UpdateIdentity", Handler: _Msg_UpdateIdentity_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iritamod/identity/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iritamod.identity.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Identity", Handler: _Query_Identity_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iritamod/identity/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 { Identities []*Identity `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"` // contains filtered or unexported fields }
GenesisState defines the identity module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetIdentities ¶
func (x *GenesisState) GetIdentities() []*Identity
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 Identity ¶
type Identity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PubKeys []*PubKeyInfo `protobuf:"bytes,2,rep,name=pub_keys,json=pubKeys,proto3" json:"pub_keys,omitempty"` Certificates []string `protobuf:"bytes,3,rep,name=certificates,proto3" json:"certificates,omitempty"` Credentials string `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"` Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` Data string `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Identity defines a struct for an identity
func (*Identity) GetPubKeys ¶
func (x *Identity) GetPubKeys() []*PubKeyInfo
func (*Identity) ProtoReflect ¶
func (x *Identity) ProtoReflect() protoreflect.Message
type MsgClient ¶
type MsgClient interface { // CreateIdentity defines a method for creating a new identity. CreateIdentity(ctx context.Context, in *MsgCreateIdentity, opts ...grpc.CallOption) (*MsgCreateIdentityResponse, error) // UpdateIdentity defines a method for Updating a identity. UpdateIdentity(ctx context.Context, in *MsgUpdateIdentity, opts ...grpc.CallOption) (*MsgUpdateIdentityResponse, 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 MsgCreateIdentity ¶
type MsgCreateIdentity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PubKey *PubKeyInfo `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` Credentials string `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"` Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` Data string `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
MsgCreateIdentity defines a message to create an identity
func (*MsgCreateIdentity) Descriptor
deprecated
func (*MsgCreateIdentity) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateIdentity.ProtoReflect.Descriptor instead.
func (*MsgCreateIdentity) GetCertificate ¶
func (x *MsgCreateIdentity) GetCertificate() string
func (*MsgCreateIdentity) GetCredentials ¶
func (x *MsgCreateIdentity) GetCredentials() string
func (*MsgCreateIdentity) GetData ¶
func (x *MsgCreateIdentity) GetData() string
func (*MsgCreateIdentity) GetId ¶
func (x *MsgCreateIdentity) GetId() string
func (*MsgCreateIdentity) GetOwner ¶
func (x *MsgCreateIdentity) GetOwner() string
func (*MsgCreateIdentity) GetPubKey ¶
func (x *MsgCreateIdentity) GetPubKey() *PubKeyInfo
func (*MsgCreateIdentity) ProtoMessage ¶
func (*MsgCreateIdentity) ProtoMessage()
func (*MsgCreateIdentity) ProtoReflect ¶
func (x *MsgCreateIdentity) ProtoReflect() protoreflect.Message
func (*MsgCreateIdentity) Reset ¶
func (x *MsgCreateIdentity) Reset()
func (*MsgCreateIdentity) String ¶
func (x *MsgCreateIdentity) String() string
type MsgCreateIdentityResponse ¶
type MsgCreateIdentityResponse struct {
// contains filtered or unexported fields
}
MsgCreateIdentityResponse defines the Msg/Create response type.
func (*MsgCreateIdentityResponse) Descriptor
deprecated
func (*MsgCreateIdentityResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateIdentityResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateIdentityResponse) ProtoMessage ¶
func (*MsgCreateIdentityResponse) ProtoMessage()
func (*MsgCreateIdentityResponse) ProtoReflect ¶
func (x *MsgCreateIdentityResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateIdentityResponse) Reset ¶
func (x *MsgCreateIdentityResponse) Reset()
func (*MsgCreateIdentityResponse) String ¶
func (x *MsgCreateIdentityResponse) String() string
type MsgServer ¶
type MsgServer interface { // CreateIdentity defines a method for creating a new identity. CreateIdentity(context.Context, *MsgCreateIdentity) (*MsgCreateIdentityResponse, error) // UpdateIdentity defines a method for Updating a identity. UpdateIdentity(context.Context, *MsgUpdateIdentity) (*MsgUpdateIdentityResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUpdateIdentity ¶
type MsgUpdateIdentity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PubKey *PubKeyInfo `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` Credentials string `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"` Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` Data string `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
MsgUpdateIdentity defines a message to update an identity
func (*MsgUpdateIdentity) Descriptor
deprecated
func (*MsgUpdateIdentity) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateIdentity.ProtoReflect.Descriptor instead.
func (*MsgUpdateIdentity) GetCertificate ¶
func (x *MsgUpdateIdentity) GetCertificate() string
func (*MsgUpdateIdentity) GetCredentials ¶
func (x *MsgUpdateIdentity) GetCredentials() string
func (*MsgUpdateIdentity) GetData ¶
func (x *MsgUpdateIdentity) GetData() string
func (*MsgUpdateIdentity) GetId ¶
func (x *MsgUpdateIdentity) GetId() string
func (*MsgUpdateIdentity) GetOwner ¶
func (x *MsgUpdateIdentity) GetOwner() string
func (*MsgUpdateIdentity) GetPubKey ¶
func (x *MsgUpdateIdentity) GetPubKey() *PubKeyInfo
func (*MsgUpdateIdentity) ProtoMessage ¶
func (*MsgUpdateIdentity) ProtoMessage()
func (*MsgUpdateIdentity) ProtoReflect ¶
func (x *MsgUpdateIdentity) ProtoReflect() protoreflect.Message
func (*MsgUpdateIdentity) Reset ¶
func (x *MsgUpdateIdentity) Reset()
func (*MsgUpdateIdentity) String ¶
func (x *MsgUpdateIdentity) String() string
type MsgUpdateIdentityResponse ¶
type MsgUpdateIdentityResponse struct {
// contains filtered or unexported fields
}
MsgUpdateIdentityResponse defines the Msg/Update response type.
func (*MsgUpdateIdentityResponse) Descriptor
deprecated
func (*MsgUpdateIdentityResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateIdentityResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateIdentityResponse) ProtoMessage ¶
func (*MsgUpdateIdentityResponse) ProtoMessage()
func (*MsgUpdateIdentityResponse) ProtoReflect ¶
func (x *MsgUpdateIdentityResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateIdentityResponse) Reset ¶
func (x *MsgUpdateIdentityResponse) Reset()
func (*MsgUpdateIdentityResponse) String ¶
func (x *MsgUpdateIdentityResponse) String() string
type PubKeyAlgorithm ¶
type PubKeyAlgorithm int32
PubKeyAlgorithm defines the algorithm names for the public key
const ( // UnknownPubKeyAlgorithm defines an unknown algorithm name PubKeyAlgorithm_UnknownPubKeyAlgorithm PubKeyAlgorithm = 0 // RSA defines a RSA algorithm name PubKeyAlgorithm_RSA PubKeyAlgorithm = 1 // DSA defines a DSA algorithm name. PubKeyAlgorithm_DSA PubKeyAlgorithm = 2 // ECDSA defines an ECDSA algorithm name. PubKeyAlgorithm_ECDSA PubKeyAlgorithm = 3 // ED25519 defines an ED25519 algorithm name. PubKeyAlgorithm_ED25519 PubKeyAlgorithm = 4 // SM2 defines an SM2 algorithm name. PubKeyAlgorithm_SM2 PubKeyAlgorithm = 5 )
func (PubKeyAlgorithm) Descriptor ¶
func (PubKeyAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (PubKeyAlgorithm) Enum ¶
func (x PubKeyAlgorithm) Enum() *PubKeyAlgorithm
func (PubKeyAlgorithm) EnumDescriptor
deprecated
func (PubKeyAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use PubKeyAlgorithm.Descriptor instead.
func (PubKeyAlgorithm) Number ¶
func (x PubKeyAlgorithm) Number() protoreflect.EnumNumber
func (PubKeyAlgorithm) String ¶
func (x PubKeyAlgorithm) String() string
func (PubKeyAlgorithm) Type ¶
func (PubKeyAlgorithm) Type() protoreflect.EnumType
type PubKeyInfo ¶
type PubKeyInfo struct { PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Algorithm PubKeyAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=iritamod.identity.PubKeyAlgorithm" json:"algorithm,omitempty"` // contains filtered or unexported fields }
PubKey represents a public key along with the corresponding algorithm
func (*PubKeyInfo) Descriptor
deprecated
func (*PubKeyInfo) Descriptor() ([]byte, []int)
Deprecated: Use PubKeyInfo.ProtoReflect.Descriptor instead.
func (*PubKeyInfo) GetAlgorithm ¶
func (x *PubKeyInfo) GetAlgorithm() PubKeyAlgorithm
func (*PubKeyInfo) GetPubKey ¶
func (x *PubKeyInfo) GetPubKey() string
func (*PubKeyInfo) ProtoMessage ¶
func (*PubKeyInfo) ProtoMessage()
func (*PubKeyInfo) ProtoReflect ¶
func (x *PubKeyInfo) ProtoReflect() protoreflect.Message
func (*PubKeyInfo) Reset ¶
func (x *PubKeyInfo) Reset()
func (*PubKeyInfo) String ¶
func (x *PubKeyInfo) String() string
type QueryClient ¶
type QueryClient interface { // Identity queries the identity by the given id Identity(ctx context.Context, in *QueryIdentityRequest, opts ...grpc.CallOption) (*QueryIdentityResponse, 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 QueryIdentityRequest ¶
type QueryIdentityRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
QueryIdentityRequest is request type for the Query/Identity RPC method
func (*QueryIdentityRequest) Descriptor
deprecated
func (*QueryIdentityRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryIdentityRequest.ProtoReflect.Descriptor instead.
func (*QueryIdentityRequest) GetId ¶
func (x *QueryIdentityRequest) GetId() string
func (*QueryIdentityRequest) ProtoMessage ¶
func (*QueryIdentityRequest) ProtoMessage()
func (*QueryIdentityRequest) ProtoReflect ¶
func (x *QueryIdentityRequest) ProtoReflect() protoreflect.Message
func (*QueryIdentityRequest) Reset ¶
func (x *QueryIdentityRequest) Reset()
func (*QueryIdentityRequest) String ¶
func (x *QueryIdentityRequest) String() string
type QueryIdentityResponse ¶
type QueryIdentityResponse struct { Identity *Identity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // contains filtered or unexported fields }
QueryIdentityResponse is response type for the Query/Identity RPC method
func (*QueryIdentityResponse) Descriptor
deprecated
func (*QueryIdentityResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryIdentityResponse.ProtoReflect.Descriptor instead.
func (*QueryIdentityResponse) GetIdentity ¶
func (x *QueryIdentityResponse) GetIdentity() *Identity
func (*QueryIdentityResponse) ProtoMessage ¶
func (*QueryIdentityResponse) ProtoMessage()
func (*QueryIdentityResponse) ProtoReflect ¶
func (x *QueryIdentityResponse) ProtoReflect() protoreflect.Message
func (*QueryIdentityResponse) Reset ¶
func (x *QueryIdentityResponse) Reset()
func (*QueryIdentityResponse) String ¶
func (x *QueryIdentityResponse) String() string
type QueryServer ¶
type QueryServer interface { // Identity queries the identity by the given id Identity(context.Context, *QueryIdentityRequest) (*QueryIdentityResponse, 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) CreateIdentity ¶
func (UnimplementedMsgServer) CreateIdentity(context.Context, *MsgCreateIdentity) (*MsgCreateIdentityResponse, error)
func (UnimplementedMsgServer) UpdateIdentity ¶
func (UnimplementedMsgServer) UpdateIdentity(context.Context, *MsgUpdateIdentity) (*MsgUpdateIdentityResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Identity ¶
func (UnimplementedQueryServer) Identity(context.Context, *QueryIdentityRequest) (*QueryIdentityResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.