server

package
v0.0.0-...-758e8b3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	Discord   *discordgo.Session
	Wireguard *wgctrl.Client
}

type Context

type Context struct {
	context.Context
	*zap.SugaredLogger
	Clients
	// contains filtered or unexported fields
}

func (*Context) OnDone

func (ctx *Context) OnDone(f func())

func (*Context) OnDoneClose

func (ctx *Context) OnDoneClose(close func() error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx Context) (*Server, error)

func (*Server) Connect

func (*Server) Context

func (srv *Server) Context() context.Context

func (*Server) Heartbeat

func (*Server) Log

func (srv *Server) Log() *zap.SugaredLogger

func (*Server) Start

func (srv *Server) Start() error

Jump to

Keyboard shortcuts

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