Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertStringToTime(timeString string) (t time.Time, err error)
- func Iso8601TimeToTime(iso8601Time *Iso8601Time) *time.Time
- type CSTTime
- type Creator
- type DateTimeFormatItem
- type GetRawDataOrigin
- type Iso8601Time
- func (jt Iso8601Time) MarshalJSON() ([]byte, error)
- func (jt *Iso8601Time) Scan(v interface{}) error
- func (jt *Iso8601Time) String() string
- func (jt *Iso8601Time) ToNullableTime() *time.Time
- func (jt *Iso8601Time) ToTime() time.Time
- func (jt *Iso8601Time) UnmarshalJSON(b []byte) error
- func (jt *Iso8601Time) Value() (driver.Value, error)
- type Model
- type NoPKModel
- type RawDataOrigin
- type Scope
- type ScopeConfig
- type ScopeConfigOperator
- type StringFloat64
- type Updater
- type User
Constants ¶
View Source
const (
USER = "user"
)
Variables ¶
View Source
var DateTimeFormats []DateTimeFormatItem
DateTimeFormats FIXME ...
Functions ¶
func ConvertStringToTime ¶
ConvertStringToTime FIXME ...
func Iso8601TimeToTime ¶
func Iso8601TimeToTime(iso8601Time *Iso8601Time) *time.Time
Iso8601TimeToTime FIXME ...
Types ¶
type DateTimeFormatItem ¶
DateTimeFormatItem FIXME ... TODO: move this to helper
type GetRawDataOrigin ¶
type GetRawDataOrigin interface {
GetRawDataOrigin() *RawDataOrigin
}
type Iso8601Time ¶
Iso8601Time is type time.Time
func (Iso8601Time) MarshalJSON ¶
func (jt Iso8601Time) MarshalJSON() ([]byte, error)
MarshalJSON FIXME ...
func (*Iso8601Time) String ¶
func (jt *Iso8601Time) String() string
func (*Iso8601Time) ToNullableTime ¶
func (jt *Iso8601Time) ToNullableTime() *time.Time
ToNullableTime FIXME ...
func (*Iso8601Time) UnmarshalJSON ¶
func (jt *Iso8601Time) UnmarshalJSON(b []byte) error
UnmarshalJSON FIXME ...
type NoPKModel ¶
type NoPKModel struct { CreatedAt time.Time `json:"createdAt" mapstructure:"createdAt"` UpdatedAt time.Time `json:"updatedAt" mapstructure:"updatedAt"` RawDataOrigin `swaggerignore:"true" mapstructure:",squash"` }
func NewNoPKModel ¶
func NewNoPKModel() NoPKModel
type RawDataOrigin ¶
type RawDataOrigin struct { // can be used for flushing outdated records from table RawDataParams string `gorm:"column:_raw_data_params;type:varchar(255);index" json:"_raw_data_params" mapstructure:"rawDataParams"` RawDataTable string `gorm:"column:_raw_data_table;type:varchar(255)" json:"_raw_data_table" mapstructure:"rawDataTable"` // can be used for debugging RawDataId uint64 `gorm:"column:_raw_data_id" json:"_raw_data_id" mapstructure:"rawDataId"` // we can store record index into this field, which is helpful for debugging RawDataRemark string `gorm:"column:_raw_data_remark" json:"_raw_data_remark" mapstructure:"rawDataRemark"` }
embedded fields for tool layer tables
func (*RawDataOrigin) GetRawDataOrigin ¶
func (c *RawDataOrigin) GetRawDataOrigin() *RawDataOrigin
type Scope ¶
type Scope struct { NoPKModel `mapstructure:",squash"` ConnectionId uint64 `json:"connectionId" gorm:"primaryKey" validate:"required" mapstructure:"connectionId,omitempty"` ScopeConfigId uint64 `json:"scopeConfigId,omitempty" mapstructure:"scopeConfigId,omitempty"` }
func (Scope) ScopeConnectionId ¶
ScopeConnectionId implements plugin.ToolLayerScope.
func (Scope) ScopeScopeConfigId ¶
type ScopeConfig ¶
type ScopeConfig struct { Model Entities []string `gorm:"type:json;serializer:json" json:"entities" mapstructure:"entities"` ConnectionId uint64 `json:"connectionId" gorm:"index" validate:"required" mapstructure:"connectionId,omitempty"` Name string `mapstructure:"name" json:"name" gorm:"type:varchar(255);uniqueIndex" validate:"required"` }
func (ScopeConfig) ScopeConfigConnectionId ¶
func (s ScopeConfig) ScopeConfigConnectionId() uint64
func (ScopeConfig) ScopeConfigId ¶
func (s ScopeConfig) ScopeConfigId() uint64
type ScopeConfigOperator ¶
type StringFloat64 ¶
type StringFloat64 struct {
// contains filtered or unexported fields
}
func NewStringFloat64FromAny ¶
func NewStringFloat64FromAny(f interface{}) *StringFloat64
func (*StringFloat64) MarshalJSON ¶
func (f *StringFloat64) MarshalJSON() ([]byte, error)
func (*StringFloat64) Scan ¶
func (f *StringFloat64) Scan(v interface{}) error
func (*StringFloat64) String ¶
func (f *StringFloat64) String() string
func (*StringFloat64) UnmarshalJSON ¶
func (f *StringFloat64) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.