Documentation ¶
Index ¶
- type Handler
- func (h *Handler) DomainCreate(userId, userName, ip string) (*entities.Domain, error)
- func (h *Handler) DomainDelete(userId string) (string, error)
- func (h *Handler) DomainDeleteExpired() error
- func (h *Handler) DomainGetExpirationSoon() ([]*entities.Domain, error)
- func (h *Handler) DomainGetExpired() ([]*entities.Domain, error)
- func (h *Handler) DomainUpdate(userId, param, value string) (string, error)
- func (h *Handler) GetVpnWelcomeMessage() string
- func (h *Handler) VPNEUDeactivateExpired() error
- func (h *Handler) VPNEUGetExpirationSoon() ([]*entities.VPNEU, error)
- func (h *Handler) VPNEUGetExpired() ([]*entities.VPNEU, error)
- func (h *Handler) VpnCreateUser(login, email string) error
- func (h *Handler) VpnDeleteUser(email string) error
- func (h *Handler) VpnGetConfigUrl(email string) (string, error)
- func (h *Handler) VpnGetEUConfigUrl(login, email, userId string, durationHours int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { PritunlClient *pritunl.Client PritunlEUClient *pritunl.Client MessageTemplates map[string]string Webserver config.Webserver Store store.Store Timezone *time.Location }
func (*Handler) DomainCreate ¶
func (*Handler) DomainDeleteExpired ¶
DomainDeleteExpired deletes all expired domains
func (*Handler) DomainGetExpirationSoon ¶
DomainGetExpirationSoon returns list of domains that will be deleted in 1 day
func (*Handler) DomainGetExpired ¶
DomainGetExpired returns list of expired domains
func (*Handler) DomainUpdate ¶
func (*Handler) GetVpnWelcomeMessage ¶
func (*Handler) VPNEUDeactivateExpired ¶
VPNEUDeactivateExpired deactivates all expired vpn accounts on the EU server
func (*Handler) VPNEUGetExpirationSoon ¶
VPNEUGetExpirationSoon returns list of VPN accounts on EU server that will be deleted soon
func (*Handler) VPNEUGetExpired ¶
VPNEUGetExpired returns list of expired VPN accounts on EU server
func (*Handler) VpnCreateUser ¶
func (*Handler) VpnDeleteUser ¶
Click to show internal directories.
Click to hide internal directories.