Versions in this module Expand all Collapse all v0 v0.10.5 Jul 28, 2022 Changes in this version + const AccountServiceChaincodeMethodPrefix + const AccountServiceChaincode_GetAccount + const AccountServiceChaincode_GetAddress + const AccountServiceChaincode_GetInvokerAddress + var AccountServiceSwagger []byte + var AccountStatus_name = map[int32]string + var AccountStatus_value = map[string]int32 + var File_token_service_account_account_proto protoreflect.FileDescriptor + var KeyStatus_name = map[int32]string + var KeyStatus_value = map[string]int32 + func RegisterAccountServiceChaincode(r *cckit_router.Group, cc AccountServiceChaincode) error + func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error + func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error + func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer) + type Account struct + Address string + Status AccountStatus + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (this *Account) Validate() error + func (x *Account) GetAddress() string + func (x *Account) GetStatus() AccountStatus + func (x *Account) ProtoReflect() protoreflect.Message + func (x *Account) Reset() + func (x *Account) String() string + type AccountId struct + Address string + func (*AccountId) Descriptor() ([]byte, []int) + func (*AccountId) ProtoMessage() + func (this *AccountId) Validate() error + func (x *AccountId) GetAddress() string + func (x *AccountId) ProtoReflect() protoreflect.Message + func (x *AccountId) Reset() + func (x *AccountId) String() string + type AccountKey struct + PublicKey []byte + Status KeyStatus + func (*AccountKey) Descriptor() ([]byte, []int) + func (*AccountKey) ProtoMessage() + func (this *AccountKey) Validate() error + func (x *AccountKey) GetPublicKey() []byte + func (x *AccountKey) GetStatus() KeyStatus + func (x *AccountKey) ProtoReflect() protoreflect.Message + func (x *AccountKey) Reset() + func (x *AccountKey) String() string + type AccountServiceChaincode interface + GetAccount func(cckit_router.Context, *AccountId) (*Account, error) + GetAddress func(cckit_router.Context, *GetAddressRequest) (*AddressId, error) + GetInvokerAddress func(cckit_router.Context, *emptypb.Empty) (*AddressId, error) + type AccountServiceChaincodeLocalResolver struct + func NewAccountServiceChaincodeLocalResolver(service AccountServiceChaincode) *AccountServiceChaincodeLocalResolver + func (r *AccountServiceChaincodeLocalResolver) Resolve(ctx cckit_router.Context) (AccountServiceChaincode, error) + type AccountServiceChaincodeLocatorResolver struct + func NewAccountServiceChaincodeResolver(locatorResolver cckit_gateway.ChaincodeLocatorResolver) *AccountServiceChaincodeLocatorResolver + func (r *AccountServiceChaincodeLocatorResolver) Resolve(ctx cckit_router.Context) (AccountServiceChaincode, error) + type AccountServiceChaincodeResolver interface + Resolve func(ctx cckit_router.Context) (AccountServiceChaincode, error) + type AccountServiceChaincodeStubInvoker struct + Invoker cckit_gateway.ChaincodeStubInvoker + func NewAccountServiceChaincodeStubInvoker(locator *cckit_gateway.ChaincodeLocator) *AccountServiceChaincodeStubInvoker + func (c *AccountServiceChaincodeStubInvoker) GetAccount(ctx cckit_router.Context, in *AccountId) (*Account, error) + func (c *AccountServiceChaincodeStubInvoker) GetAddress(ctx cckit_router.Context, in *GetAddressRequest) (*AddressId, error) + func (c *AccountServiceChaincodeStubInvoker) GetInvokerAddress(ctx cckit_router.Context, in *emptypb.Empty) (*AddressId, error) + type AccountServiceClient interface + GetAccount func(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*Account, error) + GetAddress func(ctx context.Context, in *GetAddressRequest, opts ...grpc.CallOption) (*AddressId, error) + GetInvokerAddress func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AddressId, error) + func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient + type AccountServiceGateway struct + ChaincodeInstance cckit_gateway.ChaincodeInstance + func NewAccountServiceGateway(sdk cckit_sdk.SDK, channel, chaincode string, opts ...cckit_gateway.Opt) *AccountServiceGateway + func NewAccountServiceGatewayFromInstance(chaincodeInstance cckit_gateway.ChaincodeInstance) *AccountServiceGateway + func (c *AccountServiceGateway) GetAccount(ctx context.Context, in *AccountId) (*Account, error) + func (c *AccountServiceGateway) GetAddress(ctx context.Context, in *GetAddressRequest) (*AddressId, error) + func (c *AccountServiceGateway) GetInvokerAddress(ctx context.Context, in *emptypb.Empty) (*AddressId, error) + func (c *AccountServiceGateway) Invoker() cckit_gateway.ChaincodeInstanceInvoker + func (c *AccountServiceGateway) ServiceDef() cckit_gateway.ServiceDef + type AccountServiceServer interface + GetAccount func(context.Context, *AccountId) (*Account, error) + GetAddress func(context.Context, *GetAddressRequest) (*AddressId, error) + GetInvokerAddress func(context.Context, *emptypb.Empty) (*AddressId, error) + type AccountStatus int32 + const AccountStatus_ACCOUNT_STATUS_DISABLED + const AccountStatus_ACCOUNT_STATUS_ENABLED + const AccountStatus_ACCOUNT_STATUS_UNKNOWN + func (AccountStatus) Descriptor() protoreflect.EnumDescriptor + func (AccountStatus) EnumDescriptor() ([]byte, []int) + func (AccountStatus) Type() protoreflect.EnumType + func (x AccountStatus) Enum() *AccountStatus + func (x AccountStatus) Number() protoreflect.EnumNumber + func (x AccountStatus) String() string + type Address struct + Address string + func (*Address) Descriptor() ([]byte, []int) + func (*Address) ProtoMessage() + func (this *Address) Validate() error + func (x *Address) GetAddress() string + func (x *Address) ProtoReflect() protoreflect.Message + func (x *Address) Reset() + func (x *Address) String() string + type AddressId struct + Address string + func (*AddressId) Descriptor() ([]byte, []int) + func (*AddressId) ProtoMessage() + func (this *AddressId) Validate() error + func (x *AddressId) GetAddress() string + func (x *AddressId) ProtoReflect() protoreflect.Message + func (x *AddressId) Reset() + func (x *AddressId) String() string + type GetAccountRequest struct + Address string + func (*GetAccountRequest) Descriptor() ([]byte, []int) + func (*GetAccountRequest) ProtoMessage() + func (this *GetAccountRequest) Validate() error + func (x *GetAccountRequest) GetAddress() string + func (x *GetAccountRequest) ProtoReflect() protoreflect.Message + func (x *GetAccountRequest) Reset() + func (x *GetAccountRequest) String() string + type GetAddressRequest struct + PublicKey []byte + func (*GetAddressRequest) Descriptor() ([]byte, []int) + func (*GetAddressRequest) ProtoMessage() + func (this *GetAddressRequest) Validate() error + func (x *GetAddressRequest) GetPublicKey() []byte + func (x *GetAddressRequest) ProtoReflect() protoreflect.Message + func (x *GetAddressRequest) Reset() + func (x *GetAddressRequest) String() string + type Getter interface + GetAccount func(router.Context, *AccountId) (*Account, error) + GetAddress func(router.Context, *GetAddressRequest) (*AddressId, error) + GetInvokerAddress func(router.Context, *emptypb.Empty) (*AddressId, error) + type KeyStatus int32 + const KeyStatus_KEY_STATUS_DISABLED + const KeyStatus_KEY_STATUS_ENABLED + const KeyStatus_KEY_STATUS_UNKNOWN + func (KeyStatus) Descriptor() protoreflect.EnumDescriptor + func (KeyStatus) EnumDescriptor() ([]byte, []int) + func (KeyStatus) Type() protoreflect.EnumType + func (x KeyStatus) Enum() *KeyStatus + func (x KeyStatus) Number() protoreflect.EnumNumber + func (x KeyStatus) String() string + type LocalService struct + func NewLocalService() *LocalService + func (l *LocalService) GetAccount(ctx router.Context, id *AccountId) (*Account, error) + func (l *LocalService) GetAddress(ctx router.Context, req *GetAddressRequest) (*AddressId, error) + func (l *LocalService) GetInvokerAddress(ctx router.Context, _ *emptypb.Empty) (*AddressId, error) + type Remote struct + type UnimplementedAccountServiceServer struct + func (*UnimplementedAccountServiceServer) GetAccount(context.Context, *AccountId) (*Account, error) + func (*UnimplementedAccountServiceServer) GetAddress(context.Context, *GetAddressRequest) (*AddressId, error) + func (*UnimplementedAccountServiceServer) GetInvokerAddress(context.Context, *emptypb.Empty) (*AddressId, error)