apiclient

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Start running the api client
	Start() error
	// Stop stop the client
	Stop() error
	// GetInfo get the file server info
	GetInfo() (*info.FileServerInfo, error)
	// Monitor monitor the remote server
	Monitor() (monitor.MonitorService_MonitorClient, error)
	// IsClosed is connection closed of the current client
	IsClosed(err error) bool
	// SubscribeTask register a task client to the task server and wait to receive task
	SubscribeTask(clientInfo *task.ClientInfo) (task.TaskService_SubscribeTaskClient, error)
}

Client the gofs api client

func New

func New(host string, port int, enableTLS bool, certFile string, user *auth.User) Client

New create the instance of the Client

Jump to

Keyboard shortcuts

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