client

package
v0.0.0-...-47a2767 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const CacheSize = 8192

CacheSize limit size of messages in cache

Variables

View Source
var ConfigGlobal = &config{
	LogLevel: "INFO",
}

config global config data

Functions

This section is empty.

Types

type Client

type Client struct {
}

Client struct base

func NewClient

func NewClient(_version string) *Client

NewClient return a new Client instance

func (*Client) Run

func (client *Client) Run() error

Run starts client settings and run

type EventType

type EventType uint16

EventType used to identify event types

func (EventType) String

func (i EventType) String() string

type MailInfo

type MailInfo struct {
	ID         int    `json:"MailId"`     // mapstructure:"3"
	LocationID string `json:"LocationId"` // mapstructure:"6"
	OrderType  string `json:"OrderType"`  // mapstructure:"10"
	Expires    int64  `json:"Expires"`    // mapstructure:"11"
}

func (*MailInfo) StringArray

func (m *MailInfo) StringArray() []string

func (*MailInfo) StringExpires

func (m *MailInfo) StringExpires() string

type MailInfosLookup

type MailInfosLookup []MailInfo
var MailInfos MailInfosLookup

type OperationType

type OperationType uint16

OperationType used to identify operation types

func (OperationType) String

func (i OperationType) String() string

type Pow

type Pow struct {
	Key    string `json:"key"`
	Wanted string `json:"wanted"`
}

type Router

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

Router struct definitions

type WSClient

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

WSClient is a middleman between the websocket connection and the hub.

type WSHub

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

WSHub maintains the set of active clients and broadcasts messages to the clients.

Jump to

Keyboard shortcuts

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