types

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Headers map[string]string `json:"headers" mapstructure:"headers"`
}

type AuthenticateData

type AuthenticateData struct {
	ChannelData Member `json:"channel_data"`
}

type Data

type Data struct {
	Channel string `json:"channel" mapstructure:"channel"`
	Event   string `json:"event" mapstructure:"event"`
	Data    any    `json:"data" mapstructure:"data"`
	Auth    Auth   `json:"auth" mapstructure:"auth"`
	Socket  string `json:"socket" mapstructure:"socket"`
}

type Member

type Member struct {
	SocketId socket.SocketId `json:"socket_id"`
	UserId   uint64          `json:"user_id"`
	UserInfo any             `json:"user_info"`
}

type Members added in v1.1.0

type Members []*Member

func (Members) Unique added in v1.1.0

func (members Members) Unique(reverse bool) (result Members)

type PocessLockData added in v1.0.4

type PocessLockData struct {
	Process int `json:"process"`
}

Jump to

Keyboard shortcuts

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