cachegroupparameter

package
v5.1.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
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) Read

func (cgparam *TOCacheGroupParameter) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

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

func (*TOCacheGroupUnassignedParameter) Read

func (cgunparam *TOCacheGroupUnassignedParameter) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL