model

package
v1.11.9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeJson = "application/json"
	ContentTypeXml  = "application/xml"
	ContentTypeForm = "application/x-www-form-urlencoded"
)
View Source
const (
	CorrelationIdHeader = "X-Correlation-Id"
	UserAgentHeader     = "User-Agent"
	UserLanguageHeader  = "Accept-Language"
	SourceIpHeader      = "X-Real-Ip"
	TraceparentHeader   = "traceparent" // W3C
	TracestateHeader    = "tracestate"  // W3C
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType string

func (ContentType) IsValid

func (t ContentType) IsValid() bool

type Error

type Error struct {
	Message  string
	Code     int
	Response *http.Response
}

func NewError

func NewError(code int, message string, response ...*http.Response) *Error

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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