client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrServerClientSettingsAreNotSet = "server client settings are not set"
	ErrShortNameIsNotSet             = "short name is not set"
)
View Source
const (
	UrlSchemeHttp  = "http"
	UrlSchemeHttps = "https"
)
View Source
const (
	FuncPing               = "Ping"
	FuncShowDiagnosticData = "ShowDiagnosticData"
)

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(shortName string, dsn string, enableSelfSignedCertificate bool) (client *Client, err error)

NewClient is a constructor of an RPC client. Port in DSN must be explicitly set.

func NewClientWithSCS

func NewClientWithSCS(scs *cs.ServiceClientSettings, shortName string) (serviceClient *Client, err error)

func (*Client) MakeRequest

func (cli *Client) MakeRequest(ctx context.Context, method string, params any, result any) (re *jrm1.RpcError, err error)

func (*Client) Ping

func (cli *Client) Ping(verbose bool) (err error)

Jump to

Keyboard shortcuts

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