Documentation ¶
Overview ¶
Package accountpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- 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 RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)
- type AccountData
- func (*AccountData) Descriptor() ([]byte, []int)
- func (m *AccountData) GetEthAccount() *EthereumAccount
- func (m *AccountData) GetEthDefaultAccountName() string
- func (m *AccountData) GetIdentityId() string
- func (m *AccountData) GetP2PKeyPair() *KeyPair
- func (m *AccountData) GetReceiveEventNotificationEndpoint() string
- func (m *AccountData) GetSigningKeyPair() *KeyPair
- func (*AccountData) ProtoMessage()
- func (m *AccountData) Reset()
- func (m *AccountData) String() string
- func (m *AccountData) XXX_DiscardUnknown()
- func (m *AccountData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountData) XXX_Merge(src proto.Message)
- func (m *AccountData) XXX_Size() int
- func (m *AccountData) XXX_Unmarshal(b []byte) error
- type AccountServiceClient
- type AccountServiceServer
- type EthereumAccount
- func (*EthereumAccount) Descriptor() ([]byte, []int)
- func (m *EthereumAccount) GetAddress() string
- func (m *EthereumAccount) GetKey() string
- func (m *EthereumAccount) GetPassword() string
- func (*EthereumAccount) ProtoMessage()
- func (m *EthereumAccount) Reset()
- func (m *EthereumAccount) String() string
- func (m *EthereumAccount) XXX_DiscardUnknown()
- func (m *EthereumAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EthereumAccount) XXX_Merge(src proto.Message)
- func (m *EthereumAccount) XXX_Size() int
- func (m *EthereumAccount) XXX_Unmarshal(b []byte) error
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountRequest) GetIdentifier() string
- func (*GetAccountRequest) ProtoMessage()
- func (m *GetAccountRequest) Reset()
- func (m *GetAccountRequest) String() string
- func (m *GetAccountRequest) XXX_DiscardUnknown()
- func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountRequest) XXX_Size() int
- func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error
- type GetAllAccountResponse
- func (*GetAllAccountResponse) Descriptor() ([]byte, []int)
- func (m *GetAllAccountResponse) GetData() []*AccountData
- func (*GetAllAccountResponse) ProtoMessage()
- func (m *GetAllAccountResponse) Reset()
- func (m *GetAllAccountResponse) String() string
- func (m *GetAllAccountResponse) XXX_DiscardUnknown()
- func (m *GetAllAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllAccountResponse) XXX_Merge(src proto.Message)
- func (m *GetAllAccountResponse) XXX_Size() int
- func (m *GetAllAccountResponse) XXX_Unmarshal(b []byte) error
- type KeyPair
- func (*KeyPair) Descriptor() ([]byte, []int)
- func (m *KeyPair) GetPub() string
- func (m *KeyPair) GetPvt() string
- func (*KeyPair) ProtoMessage()
- func (m *KeyPair) Reset()
- func (m *KeyPair) String() string
- func (m *KeyPair) XXX_DiscardUnknown()
- func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyPair) XXX_Merge(src proto.Message)
- func (m *KeyPair) XXX_Size() int
- func (m *KeyPair) XXX_Unmarshal(b []byte) error
- type UpdateAccountRequest
- func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
- func (m *UpdateAccountRequest) GetData() *AccountData
- func (m *UpdateAccountRequest) GetIdentifier() string
- func (*UpdateAccountRequest) ProtoMessage()
- func (m *UpdateAccountRequest) Reset()
- func (m *UpdateAccountRequest) String() string
- func (m *UpdateAccountRequest) XXX_DiscardUnknown()
- func (m *UpdateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateAccountRequest) XXX_Merge(src proto.Message)
- func (m *UpdateAccountRequest) XXX_Size() int
- func (m *UpdateAccountRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAccountServiceHandler ¶
func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAccountServiceHandler registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccountServiceHandlerClient ¶
func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error
RegisterAccountServiceHandlerClient registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountServiceClient" to call the correct interceptors.
func RegisterAccountServiceHandlerFromEndpoint ¶
func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccountServiceHandlerFromEndpoint is same as RegisterAccountServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)
Types ¶
type AccountData ¶
type AccountData struct { EthAccount *EthereumAccount `protobuf:"bytes,1,opt,name=eth_account,json=ethAccount,proto3" json:"eth_account,omitempty"` EthDefaultAccountName string `` /* 128-byte string literal not displayed */ ReceiveEventNotificationEndpoint string `` /* 161-byte string literal not displayed */ IdentityId string `protobuf:"bytes,4,opt,name=identity_id,json=identityId,proto3" json:"identity_id,omitempty"` SigningKeyPair *KeyPair `protobuf:"bytes,5,opt,name=signing_key_pair,json=signingKeyPair,proto3" json:"signing_key_pair,omitempty"` P2PKeyPair *KeyPair `protobuf:"bytes,7,opt,name=p2p_key_pair,json=p2pKeyPair,proto3" json:"p2p_key_pair,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountData) Descriptor ¶
func (*AccountData) Descriptor() ([]byte, []int)
func (*AccountData) GetEthAccount ¶
func (m *AccountData) GetEthAccount() *EthereumAccount
func (*AccountData) GetEthDefaultAccountName ¶
func (m *AccountData) GetEthDefaultAccountName() string
func (*AccountData) GetIdentityId ¶
func (m *AccountData) GetIdentityId() string
func (*AccountData) GetP2PKeyPair ¶
func (m *AccountData) GetP2PKeyPair() *KeyPair
func (*AccountData) GetReceiveEventNotificationEndpoint ¶
func (m *AccountData) GetReceiveEventNotificationEndpoint() string
func (*AccountData) GetSigningKeyPair ¶
func (m *AccountData) GetSigningKeyPair() *KeyPair
func (*AccountData) ProtoMessage ¶
func (*AccountData) ProtoMessage()
func (*AccountData) Reset ¶
func (m *AccountData) Reset()
func (*AccountData) String ¶
func (m *AccountData) String() string
func (*AccountData) XXX_DiscardUnknown ¶
func (m *AccountData) XXX_DiscardUnknown()
func (*AccountData) XXX_Marshal ¶
func (m *AccountData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountData) XXX_Merge ¶
func (m *AccountData) XXX_Merge(src proto.Message)
func (*AccountData) XXX_Size ¶
func (m *AccountData) XXX_Size() int
func (*AccountData) XXX_Unmarshal ¶
func (m *AccountData) XXX_Unmarshal(b []byte) error
type AccountServiceClient ¶
type AccountServiceClient interface { GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*AccountData, error) GetAllAccounts(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetAllAccountResponse, error) CreateAccount(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*AccountData, error) GenerateAccount(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AccountData, error) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*AccountData, 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.ClientConn) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { GetAccount(context.Context, *GetAccountRequest) (*AccountData, error) GetAllAccounts(context.Context, *empty.Empty) (*GetAllAccountResponse, error) CreateAccount(context.Context, *AccountData) (*AccountData, error) GenerateAccount(context.Context, *empty.Empty) (*AccountData, error) UpdateAccount(context.Context, *UpdateAccountRequest) (*AccountData, error) }
AccountServiceServer is the server API for AccountService service.
type EthereumAccount ¶
type EthereumAccount struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EthereumAccount) Descriptor ¶
func (*EthereumAccount) Descriptor() ([]byte, []int)
func (*EthereumAccount) GetAddress ¶
func (m *EthereumAccount) GetAddress() string
func (*EthereumAccount) GetKey ¶
func (m *EthereumAccount) GetKey() string
func (*EthereumAccount) GetPassword ¶
func (m *EthereumAccount) GetPassword() string
func (*EthereumAccount) ProtoMessage ¶
func (*EthereumAccount) ProtoMessage()
func (*EthereumAccount) Reset ¶
func (m *EthereumAccount) Reset()
func (*EthereumAccount) String ¶
func (m *EthereumAccount) String() string
func (*EthereumAccount) XXX_DiscardUnknown ¶
func (m *EthereumAccount) XXX_DiscardUnknown()
func (*EthereumAccount) XXX_Marshal ¶
func (m *EthereumAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EthereumAccount) XXX_Merge ¶
func (m *EthereumAccount) XXX_Merge(src proto.Message)
func (*EthereumAccount) XXX_Size ¶
func (m *EthereumAccount) XXX_Size() int
func (*EthereumAccount) XXX_Unmarshal ¶
func (m *EthereumAccount) XXX_Unmarshal(b []byte) error
type GetAccountRequest ¶
type GetAccountRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountRequest) Descriptor ¶
func (*GetAccountRequest) Descriptor() ([]byte, []int)
func (*GetAccountRequest) GetIdentifier ¶
func (m *GetAccountRequest) GetIdentifier() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) Reset ¶
func (m *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (m *GetAccountRequest) String() string
func (*GetAccountRequest) XXX_DiscardUnknown ¶
func (m *GetAccountRequest) XXX_DiscardUnknown()
func (*GetAccountRequest) XXX_Marshal ¶
func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountRequest) XXX_Merge ¶
func (m *GetAccountRequest) XXX_Merge(src proto.Message)
func (*GetAccountRequest) XXX_Size ¶
func (m *GetAccountRequest) XXX_Size() int
func (*GetAccountRequest) XXX_Unmarshal ¶
func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error
type GetAllAccountResponse ¶
type GetAllAccountResponse struct { Data []*AccountData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAllAccountResponse) Descriptor ¶
func (*GetAllAccountResponse) Descriptor() ([]byte, []int)
func (*GetAllAccountResponse) GetData ¶
func (m *GetAllAccountResponse) GetData() []*AccountData
func (*GetAllAccountResponse) ProtoMessage ¶
func (*GetAllAccountResponse) ProtoMessage()
func (*GetAllAccountResponse) Reset ¶
func (m *GetAllAccountResponse) Reset()
func (*GetAllAccountResponse) String ¶
func (m *GetAllAccountResponse) String() string
func (*GetAllAccountResponse) XXX_DiscardUnknown ¶
func (m *GetAllAccountResponse) XXX_DiscardUnknown()
func (*GetAllAccountResponse) XXX_Marshal ¶
func (m *GetAllAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllAccountResponse) XXX_Merge ¶
func (m *GetAllAccountResponse) XXX_Merge(src proto.Message)
func (*GetAllAccountResponse) XXX_Size ¶
func (m *GetAllAccountResponse) XXX_Size() int
func (*GetAllAccountResponse) XXX_Unmarshal ¶
func (m *GetAllAccountResponse) XXX_Unmarshal(b []byte) error
type KeyPair ¶
type KeyPair struct { Pub string `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` Pvt string `protobuf:"bytes,2,opt,name=pvt,proto3" json:"pvt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyPair) Descriptor ¶
func (*KeyPair) ProtoMessage ¶
func (*KeyPair) ProtoMessage()
func (*KeyPair) XXX_DiscardUnknown ¶
func (m *KeyPair) XXX_DiscardUnknown()
func (*KeyPair) XXX_Marshal ¶
func (*KeyPair) XXX_Unmarshal ¶
type UpdateAccountRequest ¶
type UpdateAccountRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Data *AccountData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateAccountRequest) Descriptor ¶
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
func (*UpdateAccountRequest) GetData ¶
func (m *UpdateAccountRequest) GetData() *AccountData
func (*UpdateAccountRequest) GetIdentifier ¶
func (m *UpdateAccountRequest) GetIdentifier() string
func (*UpdateAccountRequest) ProtoMessage ¶
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) Reset ¶
func (m *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) String ¶
func (m *UpdateAccountRequest) String() string
func (*UpdateAccountRequest) XXX_DiscardUnknown ¶
func (m *UpdateAccountRequest) XXX_DiscardUnknown()
func (*UpdateAccountRequest) XXX_Marshal ¶
func (m *UpdateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateAccountRequest) XXX_Merge ¶
func (m *UpdateAccountRequest) XXX_Merge(src proto.Message)
func (*UpdateAccountRequest) XXX_Size ¶
func (m *UpdateAccountRequest) XXX_Size() int
func (*UpdateAccountRequest) XXX_Unmarshal ¶
func (m *UpdateAccountRequest) XXX_Unmarshal(b []byte) error