Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToMarshal = errors.New("failed to marshal location") ErrFailedToUnmarshal = errors.New("failed to unmarshal location") )
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct {
// LocationID is the location id.
LocationID interface{} `json:"locationId" db:"location_id"`
// CreateTime is the timestamp of when the record was created.
CreateTime time.Time `json:"createTime" db:"create_time" fieldopt:"omitempty"`
// UpdateTime is the timestamp of when the record was updated.
UpdateTime time.Time `json:"updateTime" db:"update_time" fieldopt:"omitempty"`
// MetaNetworkName is the network name of the location.
MetaNetworkName string `json:"metaNetworkName" db:"meta_network_name"`
// MetaClientName is the client instance name.
MetaClientName string `json:"metaClientName" db:"meta_client_name"`
// Type is the type of the location.
Type string `json:"type" db:"type"`
// RelayName is the name of the relay.
RelayName string `json:"relayName" db:"relay_name"`
// Value is the value of the location.
Value string `json:"value" db:"value"`
}
Click to show internal directories.
Click to hide internal directories.