Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMacAddress ¶
CheckMacAddress validates an entered MAC address is valid for the device
Types ¶
type Auth ¶
Auth is the implementation of the authentication service
func NewAuthService ¶
NewAuthService creates a new authentication service
func (*Auth) CreateSession ¶
CreateSession creates a new session, validating the token
type AuthService ¶
type AuthService interface { ValidateSession(username, sessionID string) (*datastore.Session, error) CreateSession(token string, expires time.Time) (*datastore.Session, error) }
AuthService is the interface for the authentication service
type Time ¶
type Time struct { Timezones []string `json:"timezones"` Timezone string `json:"timezone"` NTP bool `json:"ntp"` Time time.Time `json:"time"` // contains filtered or unexported fields }
Time implements actions for managing time
Click to show internal directories.
Click to hide internal directories.