client

package
v0.0.1-20220819-0001 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 15 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 {

	// WebSocket Client which will be created on connect
	WSClient *wsClient.Client

	// Logger
	Logger *model.Logger
	// contains filtered or unexported fields
}

func New

func New(
	ctx context.Context,
	config config.Config,
) (*Client, error)

func (*Client) Connect

func (c *Client) Connect()

func (*Client) Disconnect

func (c *Client) Disconnect()

func (*Client) LDebug

func (c *Client) LDebug() *zerolog.Event

LDebug -> 0

func (*Client) LDebugF

func (c *Client) LDebugF(functionName string) *zerolog.Event

LDebugF -> when you need specifically to indicate in what function the logging is happening

func (*Client) LError

func (c *Client) LError() *zerolog.Event

LError -> 3

func (*Client) LErrorF

func (c *Client) LErrorF(functionName string) *zerolog.Event

LErrorF -> when you need specifically to indicate in what function the logging is happening

func (*Client) LEvent

func (c *Client) LEvent(eventType string, eventName string, beforeMsg func(event *zerolog.Event))

func (*Client) LEventCustom

func (c *Client) LEventCustom(eventType string, eventName string) *zerolog.Event

func (*Client) LEventF

func (c *Client) LEventF(eventType string, eventName string, functionName string) *zerolog.Event

func (*Client) LFatal

func (c *Client) LFatal() *zerolog.Event

LFatal -> 4

func (*Client) LInfo

func (c *Client) LInfo() *zerolog.Event

LInfo -> 1

func (*Client) LInfoF

func (c *Client) LInfoF(functionName string) *zerolog.Event

LInfoF -> when you need specifically to indicate in what function the logging is happening

func (*Client) LPanic

func (c *Client) LPanic() *zerolog.Event

LPanic -> 5

func (*Client) LWarn

func (c *Client) LWarn() *zerolog.Event

LWarn -> 2

func (*Client) LWarnF

func (c *Client) LWarnF(functionName string) *zerolog.Event

LWarnF -> when you need specifically to indicate in what function the logging is happening

Jump to

Keyboard shortcuts

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