client

package
v0.0.0-...-ba59bca Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 9 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 struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...Option) *Client

func (*Client) Execute

func (c *Client) Execute(param contract.ExecuteParam) error

Execute calls Skynet to dispatch task

func (*Client) Notify

func (c *Client) Notify(param contract.NotifyParam) error

Notify sends execute result of job to Skynet

type Option

type Option func(c *Client)

func WithAddress

func WithAddress(addr string) Option

func WithToken

func WithToken(token string) Option

Jump to

Keyboard shortcuts

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