account

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAddress

func (x *Account) GetAddress() string

func (*Account) GetChain

func (x *Account) GetChain() string

func (*Account) GetDomain

func (x *Account) GetDomain() string

func (*Account) GetKmsPassword

func (x *Account) GetKmsPassword() string

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetNamespace

func (x *Account) GetNamespace() string

func (*Account) GetRole

func (x *Account) GetRole() Role

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

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.

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
const (
	Role_Admin     Role = 0
	Role_Consensus Role = 1
	Role_Ordinary  Role = 2
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

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

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

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

Jump to

Keyboard shortcuts

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