Documentation ¶
Index ¶
- func Create(w http.ResponseWriter, r *http.Request)
- func Delete(w http.ResponseWriter, r *http.Request)
- func Get(w http.ResponseWriter, r *http.Request)
- func Update(w http.ResponseWriter, r *http.Request)
- type TORole
- func (role *TORole) Create() (error, error, int)
- func (role *TORole) Delete() (error, error, int)
- func (v *TORole) DeleteQuery() string
- func (role TORole) GetAuditName() string
- func (role TORole) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (role TORole) GetKeys() (map[string]interface{}, bool)
- func (v *TORole) GetLastUpdated() (*time.Time, bool, error)
- func (role TORole) GetType() string
- func (v *TORole) InsertQuery() string
- func (v *TORole) NewReadObj() interface{}
- func (v *TORole) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (role *TORole) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (v *TORole) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
- func (v *TORole) SelectQuery() string
- func (role *TORole) SetKeys(keys map[string]interface{})
- func (v *TORole) SetLastUpdated(t tc.TimeNoMod)
- func (role *TORole) Update(h http.Header) (error, error, int)
- func (v *TORole) UpdateQuery() string
- func (role TORole) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(w http.ResponseWriter, r *http.Request)
Create will create a new role based on the struct supplied.
func Delete ¶
func Delete(w http.ResponseWriter, r *http.Request)
Delete will delete the role identified by the role name.
Types ¶
type TORole ¶
type TORole struct { api.APIInfoImpl `json:"-"` tc.Role LastUpdated *tc.TimeNoMod `json:"-"` PQCapabilities *pq.StringArray `json:"-" db:"capabilities"` }
func (*TORole) DeleteQuery ¶
func (TORole) GetAuditName ¶
func (TORole) GetKeyFieldsInfo ¶
func (role TORole) GetKeyFieldsInfo() []api.KeyFieldInfo
func (*TORole) InsertQuery ¶
func (*TORole) NewReadObj ¶
func (v *TORole) NewReadObj() interface{}
func (*TORole) ParamColumns ¶
func (v *TORole) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TORole) SelectMaxLastUpdatedQuery ¶
func (*TORole) SelectQuery ¶
func (*TORole) SetLastUpdated ¶
func (v *TORole) SetLastUpdated(t tc.TimeNoMod)
func (*TORole) UpdateQuery ¶
Click to show internal directories.
Click to hide internal directories.