client

package
v0.0.0-...-e31b947 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 5 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(mode ClientMode, remote string, token string) *Client

func (*Client) Execute

func (client *Client) Execute(request proto.Request) (promise *proto.Promise[proto.Result], err error)

func (*Client) ExecuteHttp

func (client *Client) ExecuteHttp(mode ClientMode, request proto.Request) (promise *proto.Promise[proto.Result])

func (*Client) ExecuteSync

func (client *Client) ExecuteSync(request proto.Request) (result proto.Result, err error)

func (*Client) GetMode

func (client *Client) GetMode() ClientMode

func (*Client) GetRemote

func (client *Client) GetRemote() string

func (*Client) GetToken

func (client *Client) GetToken() string

func (*Client) GetUrl

func (client *Client) GetUrl(mode ClientMode) string

func (*Client) Open

func (client *Client) Open() (err error)

type ClientMode

type ClientMode int
const (
	ClientModeHttp ClientMode = iota
	ClientModeHttps
	ClientModeWs
	ClientModeWss
)

Jump to

Keyboard shortcuts

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