identity

package
v0.0.0-...-2fe96dc Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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

View Source
const (
	Msg_CreateIdentity_FullMethodName = "/iritamod.identity.Msg/CreateIdentity"
	Msg_UpdateIdentity_FullMethodName = "/iritamod.identity.Msg/UpdateIdentity"
)
View Source
const (
	Query_Identity_FullMethodName = "/iritamod.identity.Query/Identity"
)

Variables

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

View Source
var File_iritamod_identity_genesis_proto protoreflect.FileDescriptor
View Source
var File_iritamod_identity_identity_proto protoreflect.FileDescriptor
View Source
var File_iritamod_identity_query_proto protoreflect.FileDescriptor
View Source
var File_iritamod_identity_tx_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor deprecated

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

Deprecated: Use Identity.ProtoReflect.Descriptor instead.

func (*Identity) GetCertificates

func (x *Identity) GetCertificates() []string

func (*Identity) GetCredentials

func (x *Identity) GetCredentials() string

func (*Identity) GetData

func (x *Identity) GetData() string

func (*Identity) GetId

func (x *Identity) GetId() string

func (*Identity) GetOwner

func (x *Identity) GetOwner() string

func (*Identity) GetPubKeys

func (x *Identity) GetPubKeys() []*PubKeyInfo

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) ProtoReflect

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

func (*Identity) Reset

func (x *Identity) Reset()

func (*Identity) String

func (x *Identity) String() string

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

func (x PubKeyAlgorithm) Enum() *PubKeyAlgorithm

func (PubKeyAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use PubKeyAlgorithm.Descriptor instead.

func (PubKeyAlgorithm) Number

func (PubKeyAlgorithm) String

func (x PubKeyAlgorithm) String() string

func (PubKeyAlgorithm) Type

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Identity

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.

Directories

Path Synopsis
module
v1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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