Documentation ¶
Index ¶
- Constants
- func AddCacheGroupParameters(w http.ResponseWriter, r *http.Request)
- func GetAllCacheGroupParameters(tx *sqlx.Tx, parameters map[string]string) (tc.CacheGroupParametersList, error)
- func ReadAllCacheGroupParameters(w http.ResponseWriter, r *http.Request)
- type TOCacheGroupParameter
- func (cgparam *TOCacheGroupParameter) Delete() (error, error, int)
- func (cgparam *TOCacheGroupParameter) DeleteQuery() string
- func (cgparam *TOCacheGroupParameter) GetAuditName() string
- func (cgparam *TOCacheGroupParameter) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (cgparam *TOCacheGroupParameter) GetKeys() (map[string]interface{}, bool)
- func (cgparam *TOCacheGroupParameter) GetType() string
- func (cgparam *TOCacheGroupParameter) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (cgparam *TOCacheGroupParameter) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (cgparam *TOCacheGroupParameter) SetKeys(keys map[string]interface{})
- type TOCacheGroupUnassignedParameter
Constants ¶
const ( CacheGroupIDQueryParam = "id" CacheGroupIDNamedQueryParam = "cachegroupID" ParameterIDQueryParam = "parameterId" )
Variables ¶
This section is empty.
Functions ¶
func AddCacheGroupParameters ¶
func AddCacheGroupParameters(w http.ResponseWriter, r *http.Request)
AddCacheGroupParameters performs a Create for cachegroup parameter associations. AddCacheGroupParameters accepts data as a single association or an array of multiple.
func GetAllCacheGroupParameters ¶
func GetAllCacheGroupParameters(tx *sqlx.Tx, parameters map[string]string) (tc.CacheGroupParametersList, error)
GetAllCacheGroupParameters gets all cachegroup associations from the database and returns as slice.
func ReadAllCacheGroupParameters ¶
func ReadAllCacheGroupParameters(w http.ResponseWriter, r *http.Request)
ReadAllCacheGroupParameters reads all cachegroup parameter associations.
Types ¶
type TOCacheGroupParameter ¶
type TOCacheGroupParameter struct { api.APIInfoImpl `json:"-"` tc.CacheGroupParameterNullable CacheGroupID int `json:"-" db:"cachegroup_id"` }
TOCacheGroupParameter is a type alias that is used to define CRUD functions on.
func (*TOCacheGroupParameter) Delete ¶
func (cgparam *TOCacheGroupParameter) Delete() (error, error, int)
Delete implements the api.CRUDer interface.
func (*TOCacheGroupParameter) DeleteQuery ¶
func (cgparam *TOCacheGroupParameter) DeleteQuery() string
DeleteQuery implements the api.GenericDeleter interface.
func (*TOCacheGroupParameter) GetAuditName ¶
func (cgparam *TOCacheGroupParameter) GetAuditName() string
GetAuditName implements the api.Identifier interface.
func (*TOCacheGroupParameter) GetKeyFieldsInfo ¶
func (cgparam *TOCacheGroupParameter) GetKeyFieldsInfo() []api.KeyFieldInfo
GetKeyFieldsInfo implements the api.Identifier interface.
func (*TOCacheGroupParameter) GetKeys ¶
func (cgparam *TOCacheGroupParameter) GetKeys() (map[string]interface{}, bool)
GetKeys implements the api.Identifier interface.
func (*TOCacheGroupParameter) GetType ¶
func (cgparam *TOCacheGroupParameter) GetType() string
func (*TOCacheGroupParameter) ParamColumns ¶
func (cgparam *TOCacheGroupParameter) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TOCacheGroupParameter) SetKeys ¶
func (cgparam *TOCacheGroupParameter) SetKeys(keys map[string]interface{})
SetKeys implements the api.Identifier interface and allows the delete handler to assign cachegroup and parameter ids.
type TOCacheGroupUnassignedParameter ¶
type TOCacheGroupUnassignedParameter struct { api.APIInfoImpl `json:"-"` tc.CacheGroupParameterNullable }
TOCacheGroupUnassignedParameter Unassigned Parameter TO request
func (*TOCacheGroupUnassignedParameter) GetType ¶
func (cgunparam *TOCacheGroupUnassignedParameter) GetType() string
GetType Get type string
func (*TOCacheGroupUnassignedParameter) ParamColumns ¶
func (cgunparam *TOCacheGroupUnassignedParameter) ParamColumns() map[string]dbhelpers.WhereColumnInfo
ParamColumns Parameter Where Column definitions