Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) AuthToken() string
- func (c *Client) Close() error
- func (c *Client) CreateJob(cfg job.Config) (job.Job, error)
- func (c *Client) GetJob(jobID string) (job.Job, error)
- func (c *Client) GetJobLogs(jobID string) ([]byte, error)
- func (c *Client) GetVersionInfo() (VersionInfo, error)
- func (c *Client) Init(cfg job.ServiceConfig) error
- func (c *Client) Login(clientID string, authKey string) error
- func (c *Client) Register(clientID string, authKey string) error
- func (c *Client) URL() string
- func (c *Client) Unregister(clientID string) error
- type ClientConfig
- type ClientOption
- type DialContextFn
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg ClientConfig, opts ...ClientOption) (*Client, error)
func (*Client) GetVersionInfo ¶
func (c *Client) GetVersionInfo() (VersionInfo, error)
func (*Client) Unregister ¶
type ClientConfig ¶
type ClientConfig struct { ClientID string AuthKey string URL string // contains filtered or unexported fields }
func (*ClientConfig) Parse ¶
func (c *ClientConfig) Parse() error
type ClientOption ¶
func WithDialFunc ¶
func WithDialFunc(dialFn DialContextFn) ClientOption
WithDialFunc lets the caller set an optional dialing function to setup the HTTP/WebSocket connections used by the client.
type DialContextFn ¶
Click to show internal directories.
Click to hide internal directories.