Documentation ¶
Index ¶
- Constants
- Variables
- func ParametersGroupBy() string
- type TOParameter
- func (v *TOParameter) AllowMultipleCreates() bool
- func (pa *TOParameter) Create() (error, error, int)
- func (pa *TOParameter) Delete() (error, error, int)
- func (v *TOParameter) DeleteQuery() string
- func (param *TOParameter) GetAuditName() string
- func (param TOParameter) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (param TOParameter) GetKeys() (map[string]interface{}, bool)
- func (v *TOParameter) GetLastUpdated() (*time.Time, bool, error)
- func (param *TOParameter) GetType() string
- func (v *TOParameter) InsertQuery() string
- func (v *TOParameter) NewReadObj() interface{}
- func (v *TOParameter) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (param *TOParameter) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (v *TOParameter) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
- func (v *TOParameter) SelectQuery() string
- func (param *TOParameter) SetKeys(keys map[string]interface{})
- func (v *TOParameter) SetLastUpdated(t tc.TimeNoMod)
- func (pa *TOParameter) Update(h http.Header) (error, error, int)
- func (v *TOParameter) UpdateQuery() string
- func (param TOParameter) Validate() error
Constants ¶
View Source
const ( NameQueryParam = "name" SecureQueryParam = "secure" ConfigFileQueryParam = "configFile" IDQueryParam = "id" ValueQueryParam = "value" )
Variables ¶
View Source
var (
HiddenField = "********"
)
Functions ¶
Types ¶
type TOParameter ¶
type TOParameter struct { api.APIInfoImpl `json:"-"` tc.ParameterNullable }
we need a type alias to define functions on
func (*TOParameter) AllowMultipleCreates ¶
func (v *TOParameter) AllowMultipleCreates() bool
AllowMultipleCreates indicates whether an array can be POSTed using the shared Create handler
func (*TOParameter) DeleteQuery ¶
func (v *TOParameter) DeleteQuery() string
func (*TOParameter) GetAuditName ¶
func (param *TOParameter) GetAuditName() string
func (TOParameter) GetKeyFieldsInfo ¶
func (param TOParameter) GetKeyFieldsInfo() []api.KeyFieldInfo
func (TOParameter) GetKeys ¶
func (param TOParameter) GetKeys() (map[string]interface{}, bool)
Implementation of the Identifier, Validator interface functions
func (*TOParameter) GetLastUpdated ¶
func (v *TOParameter) GetLastUpdated() (*time.Time, bool, error)
func (*TOParameter) GetType ¶
func (param *TOParameter) GetType() string
func (*TOParameter) InsertQuery ¶
func (v *TOParameter) InsertQuery() string
func (*TOParameter) NewReadObj ¶
func (v *TOParameter) NewReadObj() interface{}
func (*TOParameter) ParamColumns ¶
func (v *TOParameter) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TOParameter) SelectMaxLastUpdatedQuery ¶
func (v *TOParameter) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
func (*TOParameter) SelectQuery ¶
func (v *TOParameter) SelectQuery() string
func (*TOParameter) SetKeys ¶
func (param *TOParameter) SetKeys(keys map[string]interface{})
func (*TOParameter) SetLastUpdated ¶
func (v *TOParameter) SetLastUpdated(t tc.TimeNoMod)
func (*TOParameter) UpdateQuery ¶
func (v *TOParameter) UpdateQuery() string
func (TOParameter) Validate ¶
func (param TOParameter) Validate() error
Validate fulfills the api.Validator interface
Click to show internal directories.
Click to hide internal directories.