lib

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeErr = iota
	TypeData
	TypeResize
)

Message.Type

Variables

This section is empty.

Functions

func ReadCertPool

func ReadCertPool(crt string) *x509.CertPool

ReadCertPool get CertPool by crt file

Types

type Message

type Message struct {
	Type int             `json:"t"`
	Data json.RawMessage `json:"d"`
}

Message Websocket Communication data format

type MessageClient

type MessageClient struct {
	Type int         `json:"t"`
	Data interface{} `json:"d"`
}

MessageClient Websocket Communication data format

Jump to

Keyboard shortcuts

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