pbvc

package
v0.0.0-...-15e8950 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package pbvc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_consensus_validator_client_web_api_proto protoreflect.FileDescriptor

Functions

func RegisterAccountsHandler

func RegisterAccountsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAccountsHandler registers the http handlers for service Accounts to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAccountsHandlerClient

func RegisterAccountsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountsClient) error

RegisterAccountsHandlerClient registers the http handlers for service Accounts to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountsClient" to call the correct interceptors.

func RegisterAccountsHandlerFromEndpoint

func RegisterAccountsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAccountsHandlerFromEndpoint is same as RegisterAccountsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAccountsHandlerServer

func RegisterAccountsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountsServer) error

RegisterAccountsHandlerServer registers the http handlers for service Accounts to "mux". UnaryRPC :call AccountsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAccountsHandlerFromEndpoint instead.

func RegisterAccountsServer

func RegisterAccountsServer(s *grpc.Server, srv AccountsServer)

func RegisterAuthHandler

func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthHandler registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthHandlerClient

func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error

RegisterAuthHandlerClient registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthClient" to call the correct interceptors.

func RegisterAuthHandlerFromEndpoint

func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthHandlerServer

func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error

RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthHandlerFromEndpoint instead.

func RegisterAuthServer

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

func RegisterBeaconHandler

func RegisterBeaconHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterBeaconHandler registers the http handlers for service Beacon to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterBeaconHandlerClient

func RegisterBeaconHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BeaconClient) error

RegisterBeaconHandlerClient registers the http handlers for service Beacon to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BeaconClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BeaconClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BeaconClient" to call the correct interceptors.

func RegisterBeaconHandlerFromEndpoint

func RegisterBeaconHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterBeaconHandlerFromEndpoint is same as RegisterBeaconHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterBeaconHandlerServer

func RegisterBeaconHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BeaconServer) error

RegisterBeaconHandlerServer registers the http handlers for service Beacon to "mux". UnaryRPC :call BeaconServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBeaconHandlerFromEndpoint instead.

func RegisterBeaconServer

func RegisterBeaconServer(s *grpc.Server, srv BeaconServer)

func RegisterHealthHandler

func RegisterHealthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterHealthHandler registers the http handlers for service Health to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterHealthHandlerClient

func RegisterHealthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HealthClient) error

RegisterHealthHandlerClient registers the http handlers for service Health to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "HealthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "HealthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "HealthClient" to call the correct interceptors.

func RegisterHealthHandlerFromEndpoint

func RegisterHealthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterHealthHandlerFromEndpoint is same as RegisterHealthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterHealthHandlerServer

func RegisterHealthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HealthServer) error

RegisterHealthHandlerServer registers the http handlers for service Health to "mux". UnaryRPC :call HealthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHealthHandlerFromEndpoint instead.

func RegisterHealthServer

func RegisterHealthServer(s *grpc.Server, srv HealthServer)

func RegisterSlashingProtectionHandler

func RegisterSlashingProtectionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSlashingProtectionHandler registers the http handlers for service SlashingProtection to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSlashingProtectionHandlerClient

func RegisterSlashingProtectionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SlashingProtectionClient) error

RegisterSlashingProtectionHandlerClient registers the http handlers for service SlashingProtection to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SlashingProtectionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SlashingProtectionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SlashingProtectionClient" to call the correct interceptors.

func RegisterSlashingProtectionHandlerFromEndpoint

func RegisterSlashingProtectionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSlashingProtectionHandlerFromEndpoint is same as RegisterSlashingProtectionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSlashingProtectionHandlerServer

func RegisterSlashingProtectionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SlashingProtectionServer) error

RegisterSlashingProtectionHandlerServer registers the http handlers for service SlashingProtection to "mux". UnaryRPC :call SlashingProtectionServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSlashingProtectionHandlerFromEndpoint instead.

func RegisterSlashingProtectionServer

func RegisterSlashingProtectionServer(s *grpc.Server, srv SlashingProtectionServer)

func RegisterWalletHandler

func RegisterWalletHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterWalletHandler registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterWalletHandlerClient

func RegisterWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletClient) error

RegisterWalletHandlerClient registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WalletClient" to call the correct interceptors.

func RegisterWalletHandlerFromEndpoint

func RegisterWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterWalletHandlerFromEndpoint is same as RegisterWalletHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterWalletHandlerServer

func RegisterWalletHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletServer) error

RegisterWalletHandlerServer registers the http handlers for service Wallet to "mux". UnaryRPC :call WalletServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWalletHandlerFromEndpoint instead.

func RegisterWalletServer

func RegisterWalletServer(s *grpc.Server, srv WalletServer)

Types

type Account

type Account struct {

	// The validating public key.
	ValidatingPublicKey []byte `protobuf:"bytes,1,opt,name=validating_public_key,json=validatingPublicKey,proto3" json:"validating_public_key,omitempty"`
	// The human readable account name.
	AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// The deposit data transaction RLP bytes.
	DepositTxData []byte `protobuf:"bytes,3,opt,name=deposit_tx_data,json=depositTxData,proto3" json:"deposit_tx_data,omitempty"`
	// The derivation path (if using HD wallet).
	DerivationPath string `protobuf:"bytes,4,opt,name=derivation_path,json=derivationPath,proto3" json:"derivation_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccountName

func (x *Account) GetAccountName() string

func (*Account) GetDepositTxData

func (x *Account) GetDepositTxData() []byte

func (*Account) GetDerivationPath

func (x *Account) GetDerivationPath() string

func (*Account) GetValidatingPublicKey

func (x *Account) GetValidatingPublicKey() []byte

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 AccountRequest

type AccountRequest struct {

	// A list of validator public keys.
	PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	// A list of validator indices.
	Indices []uint64 `protobuf:"varint,2,rep,packed,name=indices,proto3" json:"indices,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountRequest) Descriptor deprecated

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

Deprecated: Use AccountRequest.ProtoReflect.Descriptor instead.

func (*AccountRequest) GetIndices

func (x *AccountRequest) GetIndices() []uint64

func (*AccountRequest) GetPublicKeys

func (x *AccountRequest) GetPublicKeys() [][]byte

func (*AccountRequest) ProtoMessage

func (*AccountRequest) ProtoMessage()

func (*AccountRequest) ProtoReflect

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

func (*AccountRequest) Reset

func (x *AccountRequest) Reset()

func (*AccountRequest) String

func (x *AccountRequest) String() string

type AccountsClient

type AccountsClient interface {
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
	BackupAccounts(ctx context.Context, in *BackupAccountsRequest, opts ...grpc.CallOption) (*BackupAccountsResponse, error)
	DeleteAccounts(ctx context.Context, in *DeleteAccountsRequest, opts ...grpc.CallOption) (*DeleteAccountsResponse, error)
}

AccountsClient is the client API for Accounts service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAccountsClient

func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient

type AccountsServer

AccountsServer is the server API for Accounts service.

type AuthClient

type AuthClient interface {
	Initialize(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InitializeAuthResponse, error)
}

AuthClient is the client API for Auth service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	Initialize(context.Context, *emptypb.Empty) (*InitializeAuthResponse, error)
}

AuthServer is the server API for Auth service.

type BackupAccountsRequest

type BackupAccountsRequest struct {

	// List of public keys to backup.
	PublicKeys     [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	BackupPassword string   `protobuf:"bytes,2,opt,name=backup_password,json=backupPassword,proto3" json:"backup_password,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupAccountsRequest) Descriptor deprecated

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

Deprecated: Use BackupAccountsRequest.ProtoReflect.Descriptor instead.

func (*BackupAccountsRequest) GetBackupPassword

func (x *BackupAccountsRequest) GetBackupPassword() string

func (*BackupAccountsRequest) GetPublicKeys

func (x *BackupAccountsRequest) GetPublicKeys() [][]byte

func (*BackupAccountsRequest) ProtoMessage

func (*BackupAccountsRequest) ProtoMessage()

func (*BackupAccountsRequest) ProtoReflect

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

func (*BackupAccountsRequest) Reset

func (x *BackupAccountsRequest) Reset()

func (*BackupAccountsRequest) String

func (x *BackupAccountsRequest) String() string

type BackupAccountsResponse

type BackupAccountsResponse struct {

	// Zip file containing backed up keystores.
	ZipFile []byte `protobuf:"bytes,1,opt,name=zip_file,json=zipFile,proto3" json:"zip_file,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupAccountsResponse) Descriptor deprecated

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

Deprecated: Use BackupAccountsResponse.ProtoReflect.Descriptor instead.

func (*BackupAccountsResponse) GetZipFile

func (x *BackupAccountsResponse) GetZipFile() []byte

func (*BackupAccountsResponse) ProtoMessage

func (*BackupAccountsResponse) ProtoMessage()

func (*BackupAccountsResponse) ProtoReflect

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

func (*BackupAccountsResponse) Reset

func (x *BackupAccountsResponse) Reset()

func (*BackupAccountsResponse) String

func (x *BackupAccountsResponse) String() string

type BeaconClient

BeaconClient is the client API for Beacon service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBeaconClient

func NewBeaconClient(cc grpc.ClientConnInterface) BeaconClient

type BeaconStatusResponse

type BeaconStatusResponse struct {

	// The host address of the node the validator
	// client is connected to.
	NodeEndpoint string `protobuf:"bytes,1,opt,name=node_endpoint,json=nodeEndpoint,proto3" json:"node_endpoint,omitempty"`
	// Whether the connection is active.
	Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
	// Whether the node is currently synchronizing to chain head.
	Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
	// The chain genesis time.
	GenesisTime uint64 `protobuf:"varint,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	// The head of the chain from the node.
	ChainHead *consensus.ChainHead `protobuf:"bytes,6,opt,name=chain_head,json=chainHead,proto3" json:"chain_head,omitempty"`
	// contains filtered or unexported fields
}

func (*BeaconStatusResponse) Descriptor deprecated

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

Deprecated: Use BeaconStatusResponse.ProtoReflect.Descriptor instead.

func (*BeaconStatusResponse) GetChainHead

func (x *BeaconStatusResponse) GetChainHead() *consensus.ChainHead

func (*BeaconStatusResponse) GetConnected

func (x *BeaconStatusResponse) GetConnected() bool

func (*BeaconStatusResponse) GetGenesisTime

func (x *BeaconStatusResponse) GetGenesisTime() uint64

func (*BeaconStatusResponse) GetNodeEndpoint

func (x *BeaconStatusResponse) GetNodeEndpoint() string

func (*BeaconStatusResponse) GetSyncing

func (x *BeaconStatusResponse) GetSyncing() bool

func (*BeaconStatusResponse) ProtoMessage

func (*BeaconStatusResponse) ProtoMessage()

func (*BeaconStatusResponse) ProtoReflect

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

func (*BeaconStatusResponse) Reset

func (x *BeaconStatusResponse) Reset()

func (*BeaconStatusResponse) String

func (x *BeaconStatusResponse) String() string

type CreateWalletRequest

type CreateWalletRequest struct {

	// Password for the wallet.
	WalletPassword string `protobuf:"bytes,2,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
	// Mnemonic in case the user is creating a derived wallet.
	Mnemonic string `protobuf:"bytes,3,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	// Number of accounts.
	NumAccounts uint64 `protobuf:"varint,4,opt,name=num_accounts,json=numAccounts,proto3" json:"num_accounts,omitempty"`
	// Remote address such as host.example.com:4000 for a gRPC remote signer server.
	RemoteAddr string `protobuf:"bytes,5,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"`
	// Path to client.crt for secure TLS connections to a remote signer server.
	RemoteCrtPath string `protobuf:"bytes,6,opt,name=remote_crt_path,json=remoteCrtPath,proto3" json:"remote_crt_path,omitempty"`
	// Path to client.key for secure TLS connections to a remote signer server.
	RemoteKeyPath string `protobuf:"bytes,7,opt,name=remote_key_path,json=remoteKeyPath,proto3" json:"remote_key_path,omitempty"`
	// Path to ca.crt for secure TLS connections to a remote signer server.
	RemoteCaCrtPath string `protobuf:"bytes,8,opt,name=remote_ca_crt_path,json=remoteCaCrtPath,proto3" json:"remote_ca_crt_path,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWalletRequest) Descriptor deprecated

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

Deprecated: Use CreateWalletRequest.ProtoReflect.Descriptor instead.

func (*CreateWalletRequest) GetMnemonic

func (x *CreateWalletRequest) GetMnemonic() string

func (*CreateWalletRequest) GetNumAccounts

func (x *CreateWalletRequest) GetNumAccounts() uint64

func (*CreateWalletRequest) GetRemoteAddr

func (x *CreateWalletRequest) GetRemoteAddr() string

func (*CreateWalletRequest) GetRemoteCaCrtPath

func (x *CreateWalletRequest) GetRemoteCaCrtPath() string

func (*CreateWalletRequest) GetRemoteCrtPath

func (x *CreateWalletRequest) GetRemoteCrtPath() string

func (*CreateWalletRequest) GetRemoteKeyPath

func (x *CreateWalletRequest) GetRemoteKeyPath() string

func (*CreateWalletRequest) GetWalletPassword

func (x *CreateWalletRequest) GetWalletPassword() string

func (*CreateWalletRequest) ProtoMessage

func (*CreateWalletRequest) ProtoMessage()

func (*CreateWalletRequest) ProtoReflect

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

func (*CreateWalletRequest) Reset

func (x *CreateWalletRequest) Reset()

func (*CreateWalletRequest) String

func (x *CreateWalletRequest) String() string

type CreateWalletResponse

type CreateWalletResponse struct {
	Wallet *WalletResponse `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWalletResponse) Descriptor deprecated

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

Deprecated: Use CreateWalletResponse.ProtoReflect.Descriptor instead.

func (*CreateWalletResponse) GetWallet

func (x *CreateWalletResponse) GetWallet() *WalletResponse

func (*CreateWalletResponse) ProtoMessage

func (*CreateWalletResponse) ProtoMessage()

func (*CreateWalletResponse) ProtoReflect

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

func (*CreateWalletResponse) Reset

func (x *CreateWalletResponse) Reset()

func (*CreateWalletResponse) String

func (x *CreateWalletResponse) String() string

type DeleteAccountsRequest

type DeleteAccountsRequest struct {

	// List of public keys to delete.
	PublicKeysToDelete [][]byte `protobuf:"bytes,1,rep,name=public_keys_to_delete,json=publicKeysToDelete,proto3" json:"public_keys_to_delete,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAccountsRequest) Descriptor deprecated

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

Deprecated: Use DeleteAccountsRequest.ProtoReflect.Descriptor instead.

func (*DeleteAccountsRequest) GetPublicKeysToDelete

func (x *DeleteAccountsRequest) GetPublicKeysToDelete() [][]byte

func (*DeleteAccountsRequest) ProtoMessage

func (*DeleteAccountsRequest) ProtoMessage()

func (*DeleteAccountsRequest) ProtoReflect

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

func (*DeleteAccountsRequest) Reset

func (x *DeleteAccountsRequest) Reset()

func (*DeleteAccountsRequest) String

func (x *DeleteAccountsRequest) String() string

type DeleteAccountsResponse

type DeleteAccountsResponse struct {

	// List of public keys successfully deleted.
	DeletedKeys [][]byte `protobuf:"bytes,1,rep,name=deleted_keys,json=deletedKeys,proto3" json:"deleted_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAccountsResponse) Descriptor deprecated

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

Deprecated: Use DeleteAccountsResponse.ProtoReflect.Descriptor instead.

func (*DeleteAccountsResponse) GetDeletedKeys

func (x *DeleteAccountsResponse) GetDeletedKeys() [][]byte

func (*DeleteAccountsResponse) ProtoMessage

func (*DeleteAccountsResponse) ProtoMessage()

func (*DeleteAccountsResponse) ProtoReflect

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

func (*DeleteAccountsResponse) Reset

func (x *DeleteAccountsResponse) Reset()

func (*DeleteAccountsResponse) String

func (x *DeleteAccountsResponse) String() string

type EditWalletConfigRequest

type EditWalletConfigRequest struct {
	RemoteAddr      string `protobuf:"bytes,1,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"`
	RemoteCrtPath   string `protobuf:"bytes,2,opt,name=remote_crt_path,json=remoteCrtPath,proto3" json:"remote_crt_path,omitempty"`
	RemoteKeyPath   string `protobuf:"bytes,3,opt,name=remote_key_path,json=remoteKeyPath,proto3" json:"remote_key_path,omitempty"`
	RemoteCaCrtPath string `protobuf:"bytes,4,opt,name=remote_ca_crt_path,json=remoteCaCrtPath,proto3" json:"remote_ca_crt_path,omitempty"`
	// contains filtered or unexported fields
}

func (*EditWalletConfigRequest) Descriptor deprecated

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

Deprecated: Use EditWalletConfigRequest.ProtoReflect.Descriptor instead.

func (*EditWalletConfigRequest) GetRemoteAddr

func (x *EditWalletConfigRequest) GetRemoteAddr() string

func (*EditWalletConfigRequest) GetRemoteCaCrtPath

func (x *EditWalletConfigRequest) GetRemoteCaCrtPath() string

func (*EditWalletConfigRequest) GetRemoteCrtPath

func (x *EditWalletConfigRequest) GetRemoteCrtPath() string

func (*EditWalletConfigRequest) GetRemoteKeyPath

func (x *EditWalletConfigRequest) GetRemoteKeyPath() string

func (*EditWalletConfigRequest) ProtoMessage

func (*EditWalletConfigRequest) ProtoMessage()

func (*EditWalletConfigRequest) ProtoReflect

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

func (*EditWalletConfigRequest) Reset

func (x *EditWalletConfigRequest) Reset()

func (*EditWalletConfigRequest) String

func (x *EditWalletConfigRequest) String() string

type ExportSlashingProtectionResponse

type ExportSlashingProtectionResponse struct {

	// JSON representation of the slash protection
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*ExportSlashingProtectionResponse) Descriptor deprecated

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

Deprecated: Use ExportSlashingProtectionResponse.ProtoReflect.Descriptor instead.

func (*ExportSlashingProtectionResponse) GetFile

func (*ExportSlashingProtectionResponse) ProtoMessage

func (*ExportSlashingProtectionResponse) ProtoMessage()

func (*ExportSlashingProtectionResponse) ProtoReflect

func (*ExportSlashingProtectionResponse) Reset

func (*ExportSlashingProtectionResponse) String

type GenerateMnemonicResponse

type GenerateMnemonicResponse struct {
	Mnemonic string `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateMnemonicResponse) Descriptor deprecated

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

Deprecated: Use GenerateMnemonicResponse.ProtoReflect.Descriptor instead.

func (*GenerateMnemonicResponse) GetMnemonic

func (x *GenerateMnemonicResponse) GetMnemonic() string

func (*GenerateMnemonicResponse) ProtoMessage

func (*GenerateMnemonicResponse) ProtoMessage()

func (*GenerateMnemonicResponse) ProtoReflect

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

func (*GenerateMnemonicResponse) Reset

func (x *GenerateMnemonicResponse) Reset()

func (*GenerateMnemonicResponse) String

func (x *GenerateMnemonicResponse) String() string

type HasWalletResponse

type HasWalletResponse struct {

	// Whether or not the user has a wallet on disk.
	WalletExists bool `protobuf:"varint,1,opt,name=wallet_exists,json=walletExists,proto3" json:"wallet_exists,omitempty"`
	// contains filtered or unexported fields
}

func (*HasWalletResponse) Descriptor deprecated

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

Deprecated: Use HasWalletResponse.ProtoReflect.Descriptor instead.

func (*HasWalletResponse) GetWalletExists

func (x *HasWalletResponse) GetWalletExists() bool

func (*HasWalletResponse) ProtoMessage

func (*HasWalletResponse) ProtoMessage()

func (*HasWalletResponse) ProtoReflect

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

func (*HasWalletResponse) Reset

func (x *HasWalletResponse) Reset()

func (*HasWalletResponse) String

func (x *HasWalletResponse) String() string

type HealthClient

type HealthClient interface {
	GetNodeConnection(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NodeConnectionResponse, error)
	GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
}

HealthClient is the client API for Health service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHealthClient

func NewHealthClient(cc grpc.ClientConnInterface) HealthClient

type HealthServer

type HealthServer interface {
	GetNodeConnection(context.Context, *emptypb.Empty) (*NodeConnectionResponse, error)
	GetVersion(context.Context, *emptypb.Empty) (*VersionResponse, error)
}

HealthServer is the server API for Health service.

type ImportAccountsRequest

type ImportAccountsRequest struct {

	// JSON-encoded keystore files to import during wallet creation.
	KeystoresImported []string `protobuf:"bytes,1,rep,name=keystores_imported,json=keystoresImported,proto3" json:"keystores_imported,omitempty"`
	// Password to unlock imported keystore files.
	KeystoresPassword string `protobuf:"bytes,2,opt,name=keystores_password,json=keystoresPassword,proto3" json:"keystores_password,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportAccountsRequest) Descriptor deprecated

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

Deprecated: Use ImportAccountsRequest.ProtoReflect.Descriptor instead.

func (*ImportAccountsRequest) GetKeystoresImported

func (x *ImportAccountsRequest) GetKeystoresImported() []string

func (*ImportAccountsRequest) GetKeystoresPassword

func (x *ImportAccountsRequest) GetKeystoresPassword() string

func (*ImportAccountsRequest) ProtoMessage

func (*ImportAccountsRequest) ProtoMessage()

func (*ImportAccountsRequest) ProtoReflect

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

func (*ImportAccountsRequest) Reset

func (x *ImportAccountsRequest) Reset()

func (*ImportAccountsRequest) String

func (x *ImportAccountsRequest) String() string

type ImportAccountsResponse

type ImportAccountsResponse struct {
	ImportedPublicKeys [][]byte `protobuf:"bytes,1,rep,name=imported_public_keys,json=importedPublicKeys,proto3" json:"imported_public_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportAccountsResponse) Descriptor deprecated

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

Deprecated: Use ImportAccountsResponse.ProtoReflect.Descriptor instead.

func (*ImportAccountsResponse) GetImportedPublicKeys

func (x *ImportAccountsResponse) GetImportedPublicKeys() [][]byte

func (*ImportAccountsResponse) ProtoMessage

func (*ImportAccountsResponse) ProtoMessage()

func (*ImportAccountsResponse) ProtoReflect

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

func (*ImportAccountsResponse) Reset

func (x *ImportAccountsResponse) Reset()

func (*ImportAccountsResponse) String

func (x *ImportAccountsResponse) String() string

type ImportSlashingProtectionRequest

type ImportSlashingProtectionRequest struct {

	// JSON representation of the slash protection
	SlashingProtectionJson string `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ImportSlashingProtectionRequest) Descriptor deprecated

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

Deprecated: Use ImportSlashingProtectionRequest.ProtoReflect.Descriptor instead.

func (*ImportSlashingProtectionRequest) GetSlashingProtectionJson

func (x *ImportSlashingProtectionRequest) GetSlashingProtectionJson() string

func (*ImportSlashingProtectionRequest) ProtoMessage

func (*ImportSlashingProtectionRequest) ProtoMessage()

func (*ImportSlashingProtectionRequest) ProtoReflect

func (*ImportSlashingProtectionRequest) Reset

func (*ImportSlashingProtectionRequest) String

type InitializeAuthRequest

type InitializeAuthRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeAuthRequest) Descriptor deprecated

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

Deprecated: Use InitializeAuthRequest.ProtoReflect.Descriptor instead.

func (*InitializeAuthRequest) GetToken

func (x *InitializeAuthRequest) GetToken() string

func (*InitializeAuthRequest) ProtoMessage

func (*InitializeAuthRequest) ProtoMessage()

func (*InitializeAuthRequest) ProtoReflect

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

func (*InitializeAuthRequest) Reset

func (x *InitializeAuthRequest) Reset()

func (*InitializeAuthRequest) String

func (x *InitializeAuthRequest) String() string

type InitializeAuthResponse

type InitializeAuthResponse struct {
	HasSignedUp bool `protobuf:"varint,1,opt,name=has_signed_up,json=hasSignedUp,proto3" json:"has_signed_up,omitempty"`
	HasWallet   bool `protobuf:"varint,2,opt,name=has_wallet,json=hasWallet,proto3" json:"has_wallet,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeAuthResponse) Descriptor deprecated

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

Deprecated: Use InitializeAuthResponse.ProtoReflect.Descriptor instead.

func (*InitializeAuthResponse) GetHasSignedUp

func (x *InitializeAuthResponse) GetHasSignedUp() bool

func (*InitializeAuthResponse) GetHasWallet

func (x *InitializeAuthResponse) GetHasWallet() bool

func (*InitializeAuthResponse) ProtoMessage

func (*InitializeAuthResponse) ProtoMessage()

func (*InitializeAuthResponse) ProtoReflect

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

func (*InitializeAuthResponse) Reset

func (x *InitializeAuthResponse) Reset()

func (*InitializeAuthResponse) String

func (x *InitializeAuthResponse) String() string

type ListAccountsRequest

type ListAccountsRequest struct {

	// Whether or not to return the raw RLP deposit tx data.
	GetDepositTxData bool `protobuf:"varint,1,opt,name=get_deposit_tx_data,json=getDepositTxData,proto3" json:"get_deposit_tx_data,omitempty"`
	// The maximum number of accounts to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call to `ListAccounts`
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Whether to return all available accounts in a single response.
	All bool `protobuf:"varint,4,opt,name=all,proto3" json:"all,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountsRequest) Descriptor deprecated

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

Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListAccountsRequest) GetAll

func (x *ListAccountsRequest) GetAll() bool

func (*ListAccountsRequest) GetGetDepositTxData

func (x *ListAccountsRequest) GetGetDepositTxData() bool

func (*ListAccountsRequest) GetPageSize

func (x *ListAccountsRequest) GetPageSize() int32

func (*ListAccountsRequest) GetPageToken

func (x *ListAccountsRequest) GetPageToken() string

func (*ListAccountsRequest) ProtoMessage

func (*ListAccountsRequest) ProtoMessage()

func (*ListAccountsRequest) ProtoReflect

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

func (*ListAccountsRequest) Reset

func (x *ListAccountsRequest) Reset()

func (*ListAccountsRequest) String

func (x *ListAccountsRequest) String() string

type ListAccountsResponse

type ListAccountsResponse struct {
	Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// A pagination token returned from a previous call to `ListAccounts`
	// that indicates from where listing should continue.
	// This field is optional.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count matching the request.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountsResponse) Descriptor deprecated

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

Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListAccountsResponse) GetAccounts

func (x *ListAccountsResponse) GetAccounts() []*Account

func (*ListAccountsResponse) GetNextPageToken

func (x *ListAccountsResponse) GetNextPageToken() string

func (*ListAccountsResponse) GetTotalSize

func (x *ListAccountsResponse) GetTotalSize() int32

func (*ListAccountsResponse) ProtoMessage

func (*ListAccountsResponse) ProtoMessage()

func (*ListAccountsResponse) ProtoReflect

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

func (*ListAccountsResponse) Reset

func (x *ListAccountsResponse) Reset()

func (*ListAccountsResponse) String

func (x *ListAccountsResponse) String() string

type NodeConnectionResponse

type NodeConnectionResponse struct {

	// The host address of the node the validator
	// client is connected to.
	NodeEndpoint string `protobuf:"bytes,1,opt,name=node_endpoint,json=nodeEndpoint,proto3" json:"node_endpoint,omitempty"`
	// Whether the connection is active.
	Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
	// Whether the node is currently synchronizing to chain head.
	Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
	// The chain genesis time.
	GenesisTime uint64 `protobuf:"varint,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeConnectionResponse) Descriptor deprecated

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

Deprecated: Use NodeConnectionResponse.ProtoReflect.Descriptor instead.

func (*NodeConnectionResponse) GetConnected

func (x *NodeConnectionResponse) GetConnected() bool

func (*NodeConnectionResponse) GetGenesisTime

func (x *NodeConnectionResponse) GetGenesisTime() uint64

func (*NodeConnectionResponse) GetNodeEndpoint

func (x *NodeConnectionResponse) GetNodeEndpoint() string

func (*NodeConnectionResponse) GetSyncing

func (x *NodeConnectionResponse) GetSyncing() bool

func (*NodeConnectionResponse) ProtoMessage

func (*NodeConnectionResponse) ProtoMessage()

func (*NodeConnectionResponse) ProtoReflect

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

func (*NodeConnectionResponse) Reset

func (x *NodeConnectionResponse) Reset()

func (*NodeConnectionResponse) String

func (x *NodeConnectionResponse) String() string

type RecoverWalletRequest

type RecoverWalletRequest struct {
	Mnemonic         string `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	NumAccounts      uint64 `protobuf:"varint,2,opt,name=num_accounts,json=numAccounts,proto3" json:"num_accounts,omitempty"`
	WalletPassword   string `protobuf:"bytes,3,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
	Language         string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	Mnemonic25ThWord string `protobuf:"bytes,5,opt,name=mnemonic25th_word,json=mnemonic25thWord,proto3" json:"mnemonic25th_word,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoverWalletRequest) Descriptor deprecated

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

Deprecated: Use RecoverWalletRequest.ProtoReflect.Descriptor instead.

func (*RecoverWalletRequest) GetLanguage

func (x *RecoverWalletRequest) GetLanguage() string

func (*RecoverWalletRequest) GetMnemonic

func (x *RecoverWalletRequest) GetMnemonic() string

func (*RecoverWalletRequest) GetMnemonic25ThWord

func (x *RecoverWalletRequest) GetMnemonic25ThWord() string

func (*RecoverWalletRequest) GetNumAccounts

func (x *RecoverWalletRequest) GetNumAccounts() uint64

func (*RecoverWalletRequest) GetWalletPassword

func (x *RecoverWalletRequest) GetWalletPassword() string

func (*RecoverWalletRequest) ProtoMessage

func (*RecoverWalletRequest) ProtoMessage()

func (*RecoverWalletRequest) ProtoReflect

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

func (*RecoverWalletRequest) Reset

func (x *RecoverWalletRequest) Reset()

func (*RecoverWalletRequest) String

func (x *RecoverWalletRequest) String() string

type SlashingProtectionClient

type SlashingProtectionClient interface {
	ExportSlashingProtection(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ExportSlashingProtectionResponse, error)
	ImportSlashingProtection(ctx context.Context, in *ImportSlashingProtectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

SlashingProtectionClient is the client API for SlashingProtection service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type SlashingProtectionServer

type SlashingProtectionServer interface {
	ExportSlashingProtection(context.Context, *emptypb.Empty) (*ExportSlashingProtectionResponse, error)
	ImportSlashingProtection(context.Context, *ImportSlashingProtectionRequest) (*emptypb.Empty, error)
}

SlashingProtectionServer is the server API for SlashingProtection service.

type UnimplementedAccountsServer

type UnimplementedAccountsServer struct {
}

UnimplementedAccountsServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountsServer) BackupAccounts

func (*UnimplementedAccountsServer) DeleteAccounts

func (*UnimplementedAccountsServer) ListAccounts

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServer) Initialize

type UnimplementedBeaconServer

type UnimplementedBeaconServer struct {
}

UnimplementedBeaconServer can be embedded to have forward compatible implementations.

func (*UnimplementedBeaconServer) GetBeaconStatus

func (*UnimplementedBeaconServer) GetPeers

func (*UnimplementedBeaconServer) GetValidatorQueue

func (*UnimplementedBeaconServer) GetValidators

type UnimplementedHealthServer

type UnimplementedHealthServer struct {
}

UnimplementedHealthServer can be embedded to have forward compatible implementations.

func (*UnimplementedHealthServer) GetNodeConnection

func (*UnimplementedHealthServer) GetVersion

type UnimplementedSlashingProtectionServer

type UnimplementedSlashingProtectionServer struct {
}

UnimplementedSlashingProtectionServer can be embedded to have forward compatible implementations.

func (*UnimplementedSlashingProtectionServer) ExportSlashingProtection

func (*UnimplementedSlashingProtectionServer) ImportSlashingProtection

type UnimplementedWalletServer

type UnimplementedWalletServer struct {
}

UnimplementedWalletServer can be embedded to have forward compatible implementations.

func (*UnimplementedWalletServer) CreateWallet

func (*UnimplementedWalletServer) ImportAccounts

func (*UnimplementedWalletServer) RecoverWallet

func (*UnimplementedWalletServer) ValidateKeystores

type ValidateKeystoresRequest

type ValidateKeystoresRequest struct {

	// JSON-encoded keystore files to validate.
	Keystores []string `protobuf:"bytes,1,rep,name=keystores,proto3" json:"keystores,omitempty"`
	// Password for the keystore files.
	KeystoresPassword string `protobuf:"bytes,2,opt,name=keystores_password,json=keystoresPassword,proto3" json:"keystores_password,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateKeystoresRequest) Descriptor deprecated

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

Deprecated: Use ValidateKeystoresRequest.ProtoReflect.Descriptor instead.

func (*ValidateKeystoresRequest) GetKeystores

func (x *ValidateKeystoresRequest) GetKeystores() []string

func (*ValidateKeystoresRequest) GetKeystoresPassword

func (x *ValidateKeystoresRequest) GetKeystoresPassword() string

func (*ValidateKeystoresRequest) ProtoMessage

func (*ValidateKeystoresRequest) ProtoMessage()

func (*ValidateKeystoresRequest) ProtoReflect

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

func (*ValidateKeystoresRequest) Reset

func (x *ValidateKeystoresRequest) Reset()

func (*ValidateKeystoresRequest) String

func (x *ValidateKeystoresRequest) String() string

type VersionResponse

type VersionResponse struct {
	Beacon    string `protobuf:"bytes,1,opt,name=beacon,proto3" json:"beacon,omitempty"`
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

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

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetBeacon

func (x *VersionResponse) GetBeacon() string

func (*VersionResponse) GetValidator

func (x *VersionResponse) GetValidator() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

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

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

type WalletClient

type WalletClient interface {
	CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error)
	//
	//rpc WalletConfig(google.protobuf.Empty) returns (WalletResponse) {
	//option (google.api.http) = {
	//get: "/v2/validator/wallet"
	//};
	//}
	RecoverWallet(ctx context.Context, in *RecoverWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error)
	ImportAccounts(ctx context.Context, in *ImportAccountsRequest, opts ...grpc.CallOption) (*ImportAccountsResponse, error)
	ValidateKeystores(ctx context.Context, in *ValidateKeystoresRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

WalletClient is the client API for Wallet service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWalletClient

func NewWalletClient(cc grpc.ClientConnInterface) WalletClient

type WalletResponse

type WalletResponse struct {
	WalletPath string `protobuf:"bytes,1,opt,name=wallet_path,json=walletPath,proto3" json:"wallet_path,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletResponse) Descriptor deprecated

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

Deprecated: Use WalletResponse.ProtoReflect.Descriptor instead.

func (*WalletResponse) GetWalletPath

func (x *WalletResponse) GetWalletPath() string

func (*WalletResponse) ProtoMessage

func (*WalletResponse) ProtoMessage()

func (*WalletResponse) ProtoReflect

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

func (*WalletResponse) Reset

func (x *WalletResponse) Reset()

func (*WalletResponse) String

func (x *WalletResponse) String() string

type WalletServer

type WalletServer interface {
	CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
	//
	//rpc WalletConfig(google.protobuf.Empty) returns (WalletResponse) {
	//option (google.api.http) = {
	//get: "/v2/validator/wallet"
	//};
	//}
	RecoverWallet(context.Context, *RecoverWalletRequest) (*CreateWalletResponse, error)
	ImportAccounts(context.Context, *ImportAccountsRequest) (*ImportAccountsResponse, error)
	ValidateKeystores(context.Context, *ValidateKeystoresRequest) (*emptypb.Empty, error)
}

WalletServer is the server API for Wallet service.

Jump to

Keyboard shortcuts

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