servicenow

package
Version: v0.0.0-...-20f0e28 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEndpoints = map[string]Endpoint{"tableEndpoint": *tableEndpoint, "changeEndpoint": *changeEndpoint}

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Base    string `json:name`
	Version string `json:version`
	Path    string `json:path`
}

type ServiceNow

type ServiceNow struct {
	BaseURL   url.URL             `json:"url"`
	Endpoints map[string]Endpoint `json:"endpoints"`
}

func (ServiceNow) HTTPRequest

func (s ServiceNow) HTTPRequest(endpoint Endpoint, method string, urlPath string, params map[string]string, reqBody string) ([]byte, error)

Source Files

Jump to

Keyboard shortcuts

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