ing
This commit is contained in:
parent
9f8fd87eca
commit
24ca9c8d4b
|
@ -1,6 +1,8 @@
|
||||||
package noauthprobe
|
package noauthprobe
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"git.loafle.net/overflow/commons-go/core/util"
|
||||||
|
)
|
||||||
|
|
||||||
type AuthStateType int
|
type AuthStateType int
|
||||||
|
|
||||||
|
@ -12,8 +14,8 @@ const (
|
||||||
type Auth struct {
|
type Auth struct {
|
||||||
TempKey *string `json:"tempKey,omitempty" yaml:"tempKey" toml:"tempKey"`
|
TempKey *string `json:"tempKey,omitempty" yaml:"tempKey" toml:"tempKey"`
|
||||||
|
|
||||||
AcceptedDate *time.Time `json:"acceptedDate,omitempty" yaml:"acceptedDate" toml:"acceptedDate"`
|
AcceptedDate *util.Timestamp `json:"acceptedDate,omitempty" yaml:"acceptedDate" toml:"acceptedDate"`
|
||||||
DeniedDate *time.Time `json:"deniedDate,omitempty" yaml:"deniedDate" toml:"deniedDate"`
|
DeniedDate *util.Timestamp `json:"deniedDate,omitempty" yaml:"deniedDate" toml:"deniedDate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *Auth) State() AuthStateType {
|
func (a *Auth) State() AuthStateType {
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
package infra
|
package infra
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
|
|
||||||
"git.loafle.net/overflow/commons-go/core/util"
|
"git.loafle.net/overflow/commons-go/core/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InfraHost struct {
|
type InfraHost struct {
|
||||||
Infra
|
Infra
|
||||||
InfraOS *InfraOS `json:"os,omitempty"`
|
InfraOS *InfraOS `json:"os,omitempty"`
|
||||||
IP json.Number `json:"ip,omitempty"`
|
IP string `json:"ip,omitempty"`
|
||||||
Mac json.Number `json:"mac,omitempty"`
|
Mac string `json:"mac,omitempty"`
|
||||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
package sensorconfig
|
package sensorconfig
|
||||||
|
|
||||||
import "encoding/json"
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
|
||||||
|
"git.loafle.net/overflow/commons-go/core/constants"
|
||||||
|
)
|
||||||
|
|
||||||
type Connection struct {
|
type Connection struct {
|
||||||
IP string `json:"ip,omitempty"`
|
IP string `json:"ip,omitempty"`
|
||||||
Port json.Number `json:"port,Number,omitempty"`
|
Port json.Number `json:"port,Number,omitempty"`
|
||||||
PortType string `json:"portType,omitempty"`
|
PortType constants.PortType `json:"portType,omitempty"`
|
||||||
SSL bool `json:"ssl,omitempty"`
|
SSL bool `json:"ssl,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user