Skip to content

threefold.tfgrid_actions.tfgrid #

fn new #

fn new(mut rpc_client RpcWsClient, logger Logger, mut grid_client TFGridClient) TFGridHandler

struct TFGridHandler #

@[heap]
struct TFGridHandler {
pub mut:
	tfgrid   TFGridClient
	ssh_keys map[string]string
	logger   Logger
	handlers map[string]fn (action Action) !
}

fn (TFGridHandler) contracts #

fn (mut h TFGridHandler) contracts(action Action) !

fn (TFGridHandler) farms #

fn (mut h TFGridHandler) farms(action Action) !

fn (TFGridHandler) handle_action #

fn (mut t TFGridHandler) handle_action(action Action) !

fn (TFGridHandler) helper #

fn (mut t TFGridHandler) helper(action Action) !

fn (TFGridHandler) nodes #

fn (mut h TFGridHandler) nodes(action Action) !

fn (TFGridHandler) stats #

fn (mut h TFGridHandler) stats(action Action) !

fn (TFGridHandler) twins #

fn (mut h TFGridHandler) twins(action Action) !