Documentation
¶
Index ¶
- Variables
- func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAddress() string
- func (x *Account) GetChain() string
- func (x *Account) GetDomain() string
- func (x *Account) GetKmsPassword() string
- func (x *Account) GetName() string
- func (x *Account) GetNamespace() string
- func (x *Account) GetRole() Role
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountList
- type AccountSampleResponse
- func (*AccountSampleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AccountSampleResponse) GetName() string
- func (x *AccountSampleResponse) GetNamespace() string
- func (*AccountSampleResponse) ProtoMessage()
- func (x *AccountSampleResponse) ProtoReflect() protoreflect.Message
- func (x *AccountSampleResponse) Reset()
- func (x *AccountSampleResponse) String() string
- type AccountServiceClient
- type AccountServiceServer
- type ListAccountRequest
- func (*ListAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountRequest) GetChain() string
- func (x *ListAccountRequest) GetNamespace() string
- func (*ListAccountRequest) ProtoMessage()
- func (x *ListAccountRequest) ProtoReflect() protoreflect.Message
- func (x *ListAccountRequest) Reset()
- func (x *ListAccountRequest) String() string
- type Role
- type UnimplementedAccountServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Role_name = map[int32]string{ 0: "Admin", 1: "Consensus", 2: "Ordinary", } Role_value = map[string]int32{ "Admin": 0, "Consensus": 1, "Ordinary": 2, } )
Enum value maps for Role.
View Source
var File_api_account_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)
Types ¶
type Account ¶
type Account struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Chain string `protobuf:"bytes,3,opt,name=chain,proto3" json:"chain,omitempty"` KmsPassword string `protobuf:"bytes,4,opt,name=kmsPassword,proto3" json:"kmsPassword,omitempty"` Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=account.Role" json:"role,omitempty"` Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"` Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAddress ¶
func (*Account) GetKmsPassword ¶
func (*Account) GetNamespace ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountList ¶
type AccountList struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*AccountList) Descriptor
deprecated
func (*AccountList) Descriptor() ([]byte, []int)
Deprecated: Use AccountList.ProtoReflect.Descriptor instead.
func (*AccountList) GetAccounts ¶
func (x *AccountList) GetAccounts() []*Account
func (*AccountList) ProtoMessage ¶
func (*AccountList) ProtoMessage()
func (*AccountList) ProtoReflect ¶
func (x *AccountList) ProtoReflect() protoreflect.Message
func (*AccountList) Reset ¶
func (x *AccountList) Reset()
func (*AccountList) String ¶
func (x *AccountList) String() string
type AccountSampleResponse ¶
type AccountSampleResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*AccountSampleResponse) Descriptor
deprecated
func (*AccountSampleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AccountSampleResponse.ProtoReflect.Descriptor instead.
func (*AccountSampleResponse) GetName ¶
func (x *AccountSampleResponse) GetName() string
func (*AccountSampleResponse) GetNamespace ¶
func (x *AccountSampleResponse) GetNamespace() string
func (*AccountSampleResponse) ProtoMessage ¶
func (*AccountSampleResponse) ProtoMessage()
func (*AccountSampleResponse) ProtoReflect ¶
func (x *AccountSampleResponse) ProtoReflect() protoreflect.Message
func (*AccountSampleResponse) Reset ¶
func (x *AccountSampleResponse) Reset()
func (*AccountSampleResponse) String ¶
func (x *AccountSampleResponse) String() string
type AccountServiceClient ¶
type AccountServiceClient interface { CreateAccount(ctx context.Context, in *Account, opts ...grpc.CallOption) (*Account, error) ListAccount(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*AccountList, error) }
AccountServiceClient is the client API for AccountService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { CreateAccount(context.Context, *Account) (*Account, error) ListAccount(context.Context, *ListAccountRequest) (*AccountList, error) }
AccountServiceServer is the server API for AccountService service.
type ListAccountRequest ¶
type ListAccountRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` // contains filtered or unexported fields }
func (*ListAccountRequest) Descriptor
deprecated
func (*ListAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountRequest.ProtoReflect.Descriptor instead.
func (*ListAccountRequest) GetChain ¶
func (x *ListAccountRequest) GetChain() string
func (*ListAccountRequest) GetNamespace ¶
func (x *ListAccountRequest) GetNamespace() string
func (*ListAccountRequest) ProtoMessage ¶
func (*ListAccountRequest) ProtoMessage()
func (*ListAccountRequest) ProtoReflect ¶
func (x *ListAccountRequest) ProtoReflect() protoreflect.Message
func (*ListAccountRequest) Reset ¶
func (x *ListAccountRequest) Reset()
func (*ListAccountRequest) String ¶
func (x *ListAccountRequest) String() string
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServiceServer) CreateAccount ¶
func (*UnimplementedAccountServiceServer) ListAccount ¶
func (*UnimplementedAccountServiceServer) ListAccount(context.Context, *ListAccountRequest) (*AccountList, error)
Click to show internal directories.
Click to hide internal directories.