structures

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	LDAPServer struct {
		Admin struct {
			Username string `json:"username"`
			Password string `json:"password"`
		} `json:"admin"`
		BaseDN        string `json:"base_dn"`
		FilterOn      string `json:"filter_on"`
		Address       string `json:"address"`
		Port          int    `json:"port"`
		Kind          string `json:"kind"`
		SkipTLSVerify bool   `json:"skip_tls_verify"`
		EmailField    string `json:"email_field"`
	} `json:"ldap_server"`
	Server struct {
		Port     int    `json:"port"`
		BasePath string `json:"base_path"`
	}
	MailServer struct {
		Address       string `json:"address"`
		Port          int    `json:"port"`
		Password      string `json:"password"`
		SenderAddress string `json:"sender_address"`
		SenderName    string `json:"sender_name"`
		Subject       string `json:"subject"`
		SkipTLSVerify bool   `json:"skip_tls_verify"`
	} `json:"mail_server"`
	FrontAddress string `json:"front_address"`
}

type CustomError

type CustomError struct {
	Text     string `default:""`
	HttpCode int    `default:"200"`
}

func (*CustomError) Error

func (e *CustomError) Error() string

type Key

type Key struct {
	IssuedAd  time.Time
	Username  string
	SecretKey string
}

type User

type User struct {
	Username    string `json:"username"`
	OldPassword string `json:"old_password"`
	NewPassword string `json:"new_password"`
	Token       string `json:"token"`
}

type UserAsk

type UserAsk struct {
	Username string `json:"username"`
}

type UserChangePassword

type UserChangePassword struct {
	Username    string `json:"username"`
	OldPassword string `json:"old_password"`
	NewPassword string `json:"new_password"`
}

type UserReinitialize

type UserReinitialize struct {
	Username    string `json:"username"`
	NewPassword string `json:"new_password"`
	Token       string `json:"token"`
}

type UserUnlock

type UserUnlock struct {
	Username string `json:"username"`
	Token    string `json:"token"`
}

Jump to

Keyboard shortcuts

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