github.com/semaphoreui/semaphore/api/helpers
No package summary is available.
Package
Files: 4. Third party imports: 3. Imports from organisation: 0. Tests: 0. Benchmarks: 0.
Constants
Types
EventLogItem
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| IntegrationID |
|
No comment on field. |
| UserID |
|
No comment on field. |
| ProjectID |
|
No comment on field. |
| ObjectType |
|
No comment on field. |
| ObjectID |
|
No comment on field. |
| Description |
|
No comment on field. |
EventLogType
This type doesn't have documentation.
| Field name | Field type | Comment |
|---|---|---|
| type |
|
No comment on field. |
H
H just a string-to-anything map
| Field name | Field type | Comment |
|---|---|---|
| type |
|
No comment on field. |
Functions
func Bind
Bind decodes json into object
Uses: http.StatusBadRequest, json.NewDecoder.func EventLog
func GetIntParam
GetIntParam fetches a parameter from the route variables as an integer redirects to a 404 or writes bad request state depending on error state
Uses: http.Redirect, http.StatusBadRequest, http.StatusFound, mux.Vars, strconv.Atoi.func GetStrParam
GetStrParam fetches a parameter from the route variables as an integer redirects to a 404 or writes bad request state depending on error state
Uses: fmt.Errorf, http.Redirect, http.StatusBadRequest, http.StatusFound, mux.Vars.func QueryParams
func QueryParamsForProps
func QueryParamsWithOwner
func Store
func TaskPool
func UserFromContext
func WriteError
func WriteErrorStatus
func WriteJSON
WriteJSON writes object as JSON
Uses: debug.PrintStack, json.NewEncoder, log.Error.Private functions
func appendEventToLog
AppendEventToLog opens (or creates) the log file in append mode and writes the Event in key=value format.
func isXHR
Tests
Files: 1. Third party imports: 1. Imports from organisation: 0. Tests: 1. Benchmarks: 0.