internal

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName    = "gamcro"
	NewDirPerm = 0750

	DefaultTextsDir = "texts"
)
View Source
const (
	Major      = 0
	Minor      = 7
	Patch      = 2
	Prerelease = `alpha`
	BuildNo    = 147
)
View Source
const DefaultCredsFile = "auth.txt"

Variables

View Source
var (
	CurrentRealmKey = mustMakeRandStr(realmChars, 6)
)
View Source
var (
	LogCfg = c4hgol.Config(
		qbsllm.NewConfig(log),
		qbsllm.NewConfig(mlog),
	)
)

Functions

This section is empty.

Types

type AuthCreds added in v0.5.0

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

func (*AuthCreds) ReadFile added in v0.5.0

func (ac *AuthCreds) ReadFile(name string) error

func (*AuthCreds) Set added in v0.5.0

func (ac *AuthCreds) Set(user, passwd string) (err error)

func (*AuthCreds) WriteFile added in v0.5.0

func (ac *AuthCreds) WriteFile(name string) error

type CryptError added in v0.6.0

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

func (CryptError) Error added in v0.6.0

func (ce CryptError) Error() string

type Gamcro

type Gamcro struct {
	SrvAddr         string
	Passphr         []byte `json:"-"`
	TLSCert, TLSKey string
	ClientAuth      AuthCreds

	MultiClient bool
	ClientNet   string
	TxtLimit    int
	APIs        GamcroAPI
	TextsDir    string
	CORS        string
	// contains filtered or unexported fields
}

func (*Gamcro) ConnectHint added in v0.5.0

func (g *Gamcro) ConnectHint() string

func (*Gamcro) Run

func (g *Gamcro) Run() error

type GamcroAPI added in v0.6.0

type GamcroAPI uint32
const (
	TypeAPI GamcroAPI = (1 << iota)
	TapAPI
	ClipPostAPI
	ClipGetAPI
	SaveTexts

	GamcroAPI_end
)

func ParseRoboAPISet added in v0.6.0

func ParseRoboAPISet(flag string) (set GamcroAPI)

func (GamcroAPI) Active added in v0.6.0

func (r GamcroAPI) Active(a GamcroAPI) bool

func (GamcroAPI) FlagString added in v0.6.0

func (set GamcroAPI) FlagString() string

func (GamcroAPI) String added in v0.6.0

func (i GamcroAPI) String() string

Jump to

Keyboard shortcuts

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