relay

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildVersion = "master"
)

Functions

func Decode

func Decode(b []byte, payload *Payload) error

func Encode

func Encode(payload Payload) ([]byte, error)

func SendMsg

func SendMsg(channel string, msg string) error

func SendPayload

func SendPayload(p Payload) error

func StartDiscord

func StartDiscord(ctx context.Context, token string, cID string) error

Types

type MessageType

type MessageType int
const (
	TypeLog MessageType = iota
	TypeStartup
	TypeShutdown
)

type Payload

type Payload struct {
	Type     MessageType
	Server   string
	Message  string
	Username string
	SayTeam  bool
	SteamID  steamid.SID64
}

Jump to

Keyboard shortcuts

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