Documentation ¶
Index ¶
- func NewService(log logging.Logger, chainManager chains.Manager, httpServer *server.Server, ...) (*common.HTTPHandler, error)
- type Admin
- func (service *Admin) Alias(_ *http.Request, args *AliasArgs, reply *api.SuccessResponse) error
- func (service *Admin) AliasChain(_ *http.Request, args *AliasChainArgs, reply *api.SuccessResponse) error
- func (service *Admin) GetChainAliases(r *http.Request, args *GetChainAliasesArgs, reply *GetChainAliasesReply) error
- func (service *Admin) LockProfile(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error
- func (service *Admin) MemoryProfile(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error
- func (service *Admin) Stacktrace(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error
- func (service *Admin) StartCPUProfiler(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error
- func (service *Admin) StopCPUProfiler(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error
- type AliasArgs
- type AliasChainArgs
- type Client
- func (c *Client) Alias(endpoint, alias string) (bool, error)
- func (c *Client) AliasChain(chain, alias string) (bool, error)
- func (c *Client) GetChainAliases(chain string) ([]string, error)
- func (c *Client) LockProfile() (bool, error)
- func (c *Client) MemoryProfile() (bool, error)
- func (c *Client) Stacktrace() (bool, error)
- func (c *Client) StartCPUProfiler() (bool, error)
- func (c *Client) StopCPUProfiler() (bool, error)
- type GetChainAliasesArgs
- type GetChainAliasesReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
Admin is the API service for node admin management
func (*Admin) AliasChain ¶
func (service *Admin) AliasChain(_ *http.Request, args *AliasChainArgs, reply *api.SuccessResponse) error
AliasChain attempts to alias a chain to a new name
func (*Admin) GetChainAliases ¶
func (service *Admin) GetChainAliases(r *http.Request, args *GetChainAliasesArgs, reply *GetChainAliasesReply) error
GetChainAliases returns the aliases of the chain
func (*Admin) LockProfile ¶
LockProfile runs a mutex profile writing to the specified file
func (*Admin) MemoryProfile ¶
MemoryProfile runs a memory profile writing to the specified file
func (*Admin) Stacktrace ¶ added in v0.8.0
Stacktrace returns the current global stacktrace
func (*Admin) StartCPUProfiler ¶
func (service *Admin) StartCPUProfiler(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error
StartCPUProfiler starts a cpu profile writing to the specified file
func (*Admin) StopCPUProfiler ¶
func (service *Admin) StopCPUProfiler(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error
StopCPUProfiler stops the cpu profile
type AliasChainArgs ¶
AliasChainArgs are the arguments for calling AliasChain
type Client ¶ added in v1.0.6
type Client struct {
// contains filtered or unexported fields
}
Client for the Avalanche Platform Info API Endpoint
func (*Client) AliasChain ¶ added in v1.0.6
func (*Client) GetChainAliases ¶ added in v1.1.4
func (*Client) LockProfile ¶ added in v1.0.6
func (*Client) MemoryProfile ¶ added in v1.0.6
func (*Client) Stacktrace ¶ added in v1.0.6
func (*Client) StartCPUProfiler ¶ added in v1.0.6
func (*Client) StopCPUProfiler ¶ added in v1.0.6
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