provider

package
v0.0.0-...-c00b355 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProvider

func GetProvider(code string) (*provider, bool)

func NewProvider

func NewProvider(ws *websocket.Conn, secret []byte) *provider

func RegisterProvider

func RegisterProvider(data registerCommandData, provider *provider) (*registerCommandData, error)

func UnregisterProvider

func UnregisterProvider(key string, provider *provider)

Types

type RawCommand

type RawCommand[T any] struct {
	Command string `json:"command"`
	ReqID   int    `json:"id"`
	Data    T      `json:"data"`
}

Jump to

Keyboard shortcuts

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