jsonrpc_sdk

package
v0.0.0-...-9da5f0f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 9 Imported by: 0

README

LDBG JSON-RPC

Golang Client SDK for Little Daemon Bot Gateway jsonrpc-server-any Plugin.

Install

go get github.com/projectriri/bot-gateway/adapters/jsonrpc-server-any/client/golang

Usage

Checkout this example.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	UUID             string
	Timeout          time.Duration
	Limit            int
	Addr             string
	MaxRetryInterval time.Duration
	Accept           []router.RoutingRule
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close()

func (*Client) ConnectRPC

func (c *Client) ConnectRPC()

func (*Client) Dial

func (c *Client) Dial()

func (*Client) GetChannelUpdates

func (c *Client) GetChannelUpdates(uuid string, timeout string, limit int) (packets []types.Packet, err error)

func (*Client) GetUpdates

func (c *Client) GetUpdates() (packets []types.Packet, err error)

func (*Client) GetUpdatesChan

func (c *Client) GetUpdatesChan(bufferSize int) (UpdatesChannel, error)

func (*Client) Init

func (c *Client) Init(addr string, uuid string)

func (*Client) InitChannel

func (c *Client) InitChannel(key string) (msg string, err error)

func (*Client) MakeRequest

func (c *Client) MakeRequest(request ChannelProduceRequest) (reply ChannelProduceResponse, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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