server

package
v0.0.0-...-c2df41f Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleACMEChallenges

func HandleACMEChallenges(root string, httpMux *http.ServeMux)

func RegisterCmd

func RegisterCmd(parentCmd *cobra.Command)

Types

type ACMEChallengeHandler

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

func (*ACMEChallengeHandler) ServeHTTP

func (h *ACMEChallengeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CloseSessionArg

type CloseSessionArg struct {
	SessionID string
}

type Empty

type Empty struct{}

type GetSessionRes

type GetSessionRes struct {
	Resp GetSessionResp
}

type GetSessionResp

type GetSessionResp struct {
	Status    int    `xml:"status"`
	SessionID string `xml:"session_id"`
}

type GetUserloginRes

type GetUserloginRes struct {
	Profile string
}

type GetUserloginResp

type GetUserloginResp struct {
}

type OpenVPNASService

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

func NewService

func NewService(profileRoot, realIPHeader string) *OpenVPNASService

func (*OpenVPNASService) CloseSession

func (h *OpenVPNASService) CloseSession(_ *http.Request, _ *CloseSessionArg, _ *Empty) error

func (*OpenVPNASService) GetAutologin

func (h *OpenVPNASService) GetAutologin(r *http.Request, _ *Empty, res *GetUserloginRes) error

func (*OpenVPNASService) GetSession

func (h *OpenVPNASService) GetSession(r *http.Request, _ *Empty, res *GetSessionRes) error

func (*OpenVPNASService) GetUserlogin

func (h *OpenVPNASService) GetUserlogin(r *http.Request, _ *Empty, res *GetUserloginRes) error

func (*OpenVPNASService) ServeHTTP

func (h *OpenVPNASService) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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