server

package
v0.0.0-...-767d6e2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 22 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)

func ServeFilestore

func ServeFilestore()

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