Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultSuffix is the default ServiceNow REST API URL suffix
DefaultSuffix = ".service-now.com/api"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
BasicAuth implements the SecurityProvider interface for basic authentication.
func NewBasicAuth ¶
NewBasicAuth returns a new BasicAuth security provider.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an opaque type that holds the client configuration
type Error ¶
type Error struct { // Exception is the exception message Exception Exception `json:"error"` // Status is the HTTP status code Status string `json:"status"` }
Error represents an error response from the ServiceNow REST API
type Exception ¶
type Exception struct { // Detail is the exception detail message Detail string `json:"detail"` // Message is the exception message Message string `json:"message"` }
Exception represents an exception message from the ServiceNow REST API
type Opt ¶
type Opt func(*Client)
Opt is a functional option type for configuring the client
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client to use
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn ...RequestEditorFn) Opt
WithRequestEditorFn sets the request editor function to use
type RequestEditorFn ¶
RequestEditorFn is a function that can be used to modify an HTTP request
Click to show internal directories.
Click to hide internal directories.