proxy

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceNow fields
	SNOW_CMDB_CI        = "cmdb_ci"
	SNOW_CORRELATION_ID = "correlation_id"
	SNOW_SYS_ID         = "sys_id"
	SNOW_USER_NAME      = "user_name"

	// ServiceNow tables
	SNOW_SYS_USER_TABLE = "sys_user"
	SNOW_INCIDENT_TABLE = "incident"
	SNOW_CMDB_TABLE     = "cmdb_ci"

	// internal fields
	CMDB_CI_DEFAULT    = "_cmdb_ci_default"
	CMDB_SEARCH        = "_cmdb_search"
	CMDB_TABLE         = "_cmdb_table"
	INCIDENT_TABLE     = "_table"
	PROFILE            = "_profile"
	RAW_CORRELATION_ID = "_correlation_id"
	UPDATE_ONLY        = "_update_only"
)
View Source
const (
	Failed  = "Failed"
	Created = "Created"
	Updated = "Updated"
)

Variables

This section is empty.

Functions

func Timestamp

func Timestamp() echo.MiddlewareFunc

timestamp the start of the request

Types

type Response

type Response struct {
	Timestamp string `json:"_timestamp"`
	Action    string `json:"_action"`
	Error     string `json:"_error,omitempty"`
	Number    string `json:"_number,omitempty"`
	Result    string `json:"result"`
}

type ResultsResponse

type ResultsResponse struct {
	Fields  []string     `json:"fields,omitempty"`
	Results snow.Results `json:"results,omitempty"`
}

Jump to

Keyboard shortcuts

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