server

package
v0.0.0-...-5027923 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CERT = "certificates"
View Source
var PLUGS = "pluginshop"
View Source
var ROOT = "filestore"
View Source
var Uname string

Functions

func AuthenticateClient

func AuthenticateClient(conn net.Conn) error

func CheckUserCert

func CheckUserCert(uname string) bool

func HandleServer

func HandleServer(conn net.Conn)

Types

type CredArr

type CredArr []Credentials

func GetCred

func GetCred() (*CredArr, error)

func (*CredArr) FromJSON

func (p *CredArr) FromJSON(r io.Reader) error

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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