Documentation
¶
Index ¶
- type AliasArgs
- type AliasChainArgs
- type Client
- func (c *Client) Alias(ctx context.Context, endpoint, alias string, options ...rpc.Option) error
- func (c *Client) AliasChain(ctx context.Context, chain, alias string, options ...rpc.Option) error
- func (c *Client) DBGet(ctx context.Context, key []byte, options ...rpc.Option) ([]byte, error)
- func (c *Client) GetChainAliases(ctx context.Context, chain string, options ...rpc.Option) ([]string, error)
- func (c *Client) GetConfig(ctx context.Context, options ...rpc.Option) (interface{}, error)
- func (c *Client) GetLoggerLevel(ctx context.Context, loggerName string, options ...rpc.Option) (map[string]LogAndDisplayLevels, error)
- func (c *Client) ListVMs(ctx context.Context, options ...rpc.Option) (map[string]VMInfo, error)
- func (c *Client) Load(ctx context.Context, path string, options ...rpc.Option) error
- func (c *Client) LoadVMs(ctx context.Context, options ...rpc.Option) (map[ids.ID][]string, map[ids.ID]string, error)
- func (c *Client) LockProfile(ctx context.Context, options ...rpc.Option) error
- func (c *Client) MemoryProfile(ctx context.Context, options ...rpc.Option) error
- func (c *Client) SetLoggerLevel(ctx context.Context, loggerName, logLevel, displayLevel string, ...) (map[string]LogAndDisplayLevels, error)
- func (c *Client) Snapshot(ctx context.Context, path string, since uint64, options ...rpc.Option) (uint64, error)
- func (c *Client) Stacktrace(ctx context.Context, options ...rpc.Option) error
- func (c *Client) StartCPUProfiler(ctx context.Context, options ...rpc.Option) error
- func (c *Client) StopCPUProfiler(ctx context.Context, options ...rpc.Option) error
- type DBGetArgs
- type DBGetReply
- type GetChainAliasesArgs
- type GetChainAliasesReply
- type GetLoggerLevelArgs
- type GetTrackedChainsReply
- type ListVMsReply
- type LoadArgs
- type LoadVMsReply
- type LogAndDisplayLevels
- type LoggerLevelReply
- type SetLoggerLevelArgs
- type SetTrackedChainsArgs
- type SetTrackedChainsReply
- type SnapshotArgs
- type SnapshotReply
- type VMInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasChainArgs ¶
AliasChainArgs are the arguments for calling AliasChain.
type Client ¶
type Client struct {
Requester rpc.EndpointRequester
}
func (*Client) AliasChain ¶
func (*Client) GetChainAliases ¶
func (*Client) GetLoggerLevel ¶
func (*Client) LockProfile ¶
func (*Client) MemoryProfile ¶
func (*Client) SetLoggerLevel ¶
func (*Client) Stacktrace ¶
func (*Client) StartCPUProfiler ¶
type DBGetArgs ¶
type DBGetArgs struct {
Key string `json:"key"`
}
DBGetArgs are the arguments for dbGet.
type DBGetReply ¶
type DBGetReply struct {
Value string `json:"value"`
}
DBGetReply is the reply for dbGet.
type GetChainAliasesArgs ¶
type GetChainAliasesArgs struct {
Chain string `json:"chain"`
}
GetChainAliasesArgs are the arguments for calling GetChainAliases.
type GetChainAliasesReply ¶
type GetChainAliasesReply struct {
Aliases []string `json:"aliases"`
}
GetChainAliasesReply are the aliases of the given chain.
type GetLoggerLevelArgs ¶
type GetLoggerLevelArgs struct {
LoggerName string `json:"loggerName"`
}
GetLoggerLevelArgs are the arguments for calling GetLoggerLevel.
type GetTrackedChainsReply ¶
type GetTrackedChainsReply struct {
TrackedChains []string `json:"trackedChains"`
}
GetTrackedChainsReply is the reply for getting tracked chains.
type ListVMsReply ¶
ListVMsReply is the reply for listVMs.
type LoadArgs ¶
type LoadArgs struct {
Path string `json:"path"`
}
LoadArgs are the arguments for load.
type LoadVMsReply ¶
type LoadVMsReply struct {
NewVMs map[ids.ID][]string `json:"newVMs"`
FailedVMs map[ids.ID]string `json:"failedVMs,omitempty"`
ChainsRetried int `json:"chainsRetried,omitempty"`
}
LoadVMsReply is the response from loading VMs.
type LogAndDisplayLevels ¶
type LogAndDisplayLevels struct {
LogLevel log.Level `json:"logLevel"`
DisplayLevel log.Level `json:"displayLevel"`
}
LogAndDisplayLevels holds log and display levels for a logger.
type LoggerLevelReply ¶
type LoggerLevelReply struct {
LoggerLevels map[string]LogAndDisplayLevels `json:"loggerLevels"`
}
LoggerLevelReply is the reply for log level calls.
type SetLoggerLevelArgs ¶
type SetLoggerLevelArgs struct {
LoggerName string `json:"loggerName"`
LogLevel *log.Level `json:"logLevel"`
DisplayLevel *log.Level `json:"displayLevel"`
}
SetLoggerLevelArgs are the arguments for calling SetLoggerLevel.
type SetTrackedChainsArgs ¶
type SetTrackedChainsArgs struct {
Chains []string `json:"chains"`
}
SetTrackedChainsArgs are the arguments for setting tracked chains.
type SetTrackedChainsReply ¶
type SetTrackedChainsReply struct {
TrackedChains []string `json:"trackedChains"`
}
SetTrackedChainsReply is the reply for setting tracked chains.
type SnapshotArgs ¶
SnapshotArgs are the arguments for snapshot.
type SnapshotReply ¶
SnapshotReply is the response from snapshot.