Lux SDKGoPackages

admin

Package admin

import "github.com/luxfi/sdk/admin"

Types

Client

func NewClient(uri string) *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]apiadmin.LogAndDisplayLevels, error)
func (c *Client) ListVMs(ctx context.Context, options ...rpc.Option) (map[string]apiadmin.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,
	options ...rpc.Option,
) (map[string]apiadmin.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