Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP interface { //Auth check if the node is authenticated Auth(ctx context.Context, addr string, token string) (interface{}, error) //Add persists the details of a new Node Add(ctx context.Context, node registry.Node) (interface{}, error) //Delete the existing Node making it invalid Delete(ctx context.Context, addr string) (interface{}, error) //Get the details of already persisted node Get(ctx context.Context, addr string) (interface{}, error) //Update the details of a Node Update(ctx context.Context, addr string, node registry.Node) (interface{}, error) //List all the valid Nodes List(ctx context.Context) (interface{}, error) //Revoke access Revoke(ctx context.Context, addr, token string) (bool, error) //CheckStatus CheckStatus(ctx context.Context, node registry.Node) (interface{}, error) }
Click to show internal directories.
Click to hide internal directories.