server

package
v0.0.0-...-700b64f Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AUTH_HOSTNAME_ENV_VAR = "AUTH_HOSTNAME"
View Source
const AUTH_PORT_ENV_VAR = "AUTH_PORT"
View Source
const PRIMARY_HOSTNAME_ENV_VAR = "PRIMARY_HOSTNAME"
View Source
const PRIMARY_PORT_ENV_VAR = "PRIMARY_PORT"

Variables

This section is empty.

Functions

func GetFs3StatusHttpCode

func GetFs3StatusHttpCode(status fs3.Status) int

Types

type FrontendServer

type FrontendServer struct {
	Logger     *log.Logger
	Port       int
	Fs3Client  fs3.Fs3Client
	AuthClient authservice.AuthClient
}

func NewFrontendServer

func NewFrontendServer(port int, logger *log.Logger) *FrontendServer

func (*FrontendServer) Copy

func (server *FrontendServer) Copy(w http.ResponseWriter, r *http.Request)

func (*FrontendServer) Describe

func (server *FrontendServer) Describe(w http.ResponseWriter, r *http.Request)

func (*FrontendServer) Get

func (server *FrontendServer) Get(w http.ResponseWriter, r *http.Request)

func (*FrontendServer) Login

func (server *FrontendServer) Login(w http.ResponseWriter, r *http.Request)

func (*FrontendServer) NewUser

func (server *FrontendServer) NewUser(w http.ResponseWriter, r *http.Request)

func (*FrontendServer) Remove

func (server *FrontendServer) Remove(w http.ResponseWriter, r *http.Request)

func (*FrontendServer) Run

func (server *FrontendServer) Run() error

func (*FrontendServer) VerifyAuthClient

func (server *FrontendServer) VerifyAuthClient()

func (*FrontendServer) VerifyFs3Client

func (server *FrontendServer) VerifyFs3Client()

Jump to

Keyboard shortcuts

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