api

package
v0.0.0-...-6387f0a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 7 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(endpoint string) (*Client, error)

func (*Client) Call

func (client *Client) Call(msg []byte) ([]byte, error)

func (*Client) Connect

func (client *Client) Connect() error

func (*Client) Disconnect

func (client *Client) Disconnect() error

func (*Client) ID

func (client *Client) ID() string

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(endpoint string) (*Server, error)

func (*Server) Connect

func (server *Server) Connect() error

func (*Server) Receive

func (server *Server) Receive() (*authorizer.Message, error)

func (*Server) Send

func (server *Server) Send(msg *authorizer.Message) error

Jump to

Keyboard shortcuts

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