server

package
v0.0.0-...-0ff533a Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 28 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 SESSION_PASSWD string
View Source
var SESSION_UNAME string
View Source
var Uname string

Functions

func AnalyzeLatestFile

func AnalyzeLatestFile(conn net.Conn)

func AuthenticateClient

func AuthenticateClient(conn net.Conn) error

func CBCDecrypter

func CBCDecrypter(ciphertext []byte) ([]byte, error)

func CheckUserCert

func CheckUserCert(uname string) bool

func GetKeeps

func GetKeeps(conn net.Conn, nameOfrepo string)

func GetLastKeep

func GetLastKeep(conn net.Conn, nameOfrepo string) (string, error)

func GetListKeeps

func GetListKeeps(conn net.Conn, nameOfrepo string)

func GetListStatistical

func GetListStatistical(conn net.Conn)

func HandleServer

func HandleServer(conn net.Conn)

func ServeFilestore

func ServeFilestore()

func SetupRepo

func SetupRepo(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