client

package
v0.0.0-...-7c55829 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

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)
}

func New

func New(baseURL, port string) HTTP

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL