web

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Package web implements the HTTP and websocket services for the frontend client and backend server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWT

func NewJWT(steamID steamid.SID64) (string, error)

Types

type APIResponse

type APIResponse struct {
	Status  bool        `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type WebHandler added in v0.1.8

type WebHandler interface {
	ListenAndServe() error
}

func New added in v0.1.8

func New(logMsgChan chan ws.LogPayload, db store.Store, bot discord.ChatBot, exec action.Executor) (WebHandler, error)

New sets up the router and starts the API HTTP handlers This function blocks on the context

Directories

Path Synopsis
Package ws implements a websocket client and server for communication between the host and agents.
Package ws implements a websocket client and server for communication between the host and agents.

Jump to

Keyboard shortcuts

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