client

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: 26 Imported by: 0

Documentation

Index

Constants

View Source
const InterfaceName = "unity_wg0"

Variables

View Source
var Discordtoken = auth.TokenSecret{
	Secret: credstore.Secret{
		Name: "unitylan:auth_token",
	},
}

Functions

This section is empty.

Types

type ClientService

type ClientService struct {
	*Context
	// contains filtered or unexported fields
}

func NewClientService

func NewClientService(ctx *Context) *ClientService

func (*ClientService) Start

func (srv *ClientService) Start()

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 DiscordAuth

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

func (*DiscordAuth) AuthCodeURL

func (auth *DiscordAuth) AuthCodeURL() string

func (*DiscordAuth) DiscordClientInit

func (auth *DiscordAuth) DiscordClientInit() error

func (*DiscordAuth) InitFromStore

func (auth *DiscordAuth) InitFromStore() error

func (*DiscordAuth) OpenAuthPage

func (auth *DiscordAuth) OpenAuthPage() error

type Frontend

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

func (*Frontend) WailsInit

func (f *Frontend) WailsInit(runtime *wails.Runtime) error

type Wireguard

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

Jump to

Keyboard shortcuts

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