Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubmitHandler ¶
SubmitHandler returns an http.Handler for submitHandler
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a cache id lookup by MD5 hash
type DB ¶
DB represents a database
type Entry ¶
type Entry struct { UID uint32 `json:"uid"` Username string `json:"username"` FullName string `json:"full_name"` Serial string `json:"serial"` ClientIdentifier string `json:"client_identifier"` Hostname string `json:"hostname"` IP string `json:"ip"` InternetIP string `json:"internet_ip,omitempty"` Time time.Time `json:"time,omitempty"` }
Entry represents information about a computer
type Insert ¶
type Insert struct { *User *Device *Address *Identity *LogEntry UserHash Hash DeviceHash Hash AddressHash Hash IdentityHash Hash UserID int DeviceID int AddressID int IdentityID int }
Insert represents a Decomposed Entry. If a field of Insert is nil, it already is in the database
type ValidationError ¶
type ValidationError string
ValidationError represents a field that is too long
func (ValidationError) Error ¶
func (v ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.