sentryapi

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type Breadcrumb struct {
	Type      OptString         `json:"type"`
	Category  OptString         `json:"category"`
	Message   OptString         `json:"message"`
	Data      OptBreadcrumbData `json:"data"`
	Level     OptLevel          `json:"level"`
	Timestamp OptTimestamp      `json:"timestamp"`
}

Breadcrumb specifies an application event that occurred before a Sentry event. An event may contain one or more breadcrumbs. See [this](https://develop.sentry.dev/sdk/event-payloads/breadcrumbs). Ref: #/components/schemas/Breadcrumb

func (s *Breadcrumb) Decode(d *jx.Decoder) error

Decode decodes Breadcrumb from json.

func (s *Breadcrumb) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (s *Breadcrumb) GetCategory() OptString

GetCategory returns the value of Category.

func (s *Breadcrumb) GetData() OptBreadcrumbData

GetData returns the value of Data.

func (s *Breadcrumb) GetLevel() OptLevel

GetLevel returns the value of Level.

func (s *Breadcrumb) GetMessage() OptString

GetMessage returns the value of Message.

func (s *Breadcrumb) GetTimestamp() OptTimestamp

GetTimestamp returns the value of Timestamp.

func (s *Breadcrumb) GetType() OptString

GetType returns the value of Type.

func (s *Breadcrumb) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (s *Breadcrumb) SetCategory(val OptString)

SetCategory sets the value of Category.

func (s *Breadcrumb) SetData(val OptBreadcrumbData)

SetData sets the value of Data.

func (s *Breadcrumb) SetLevel(val OptLevel)

SetLevel sets the value of Level.

func (s *Breadcrumb) SetMessage(val OptString)

SetMessage sets the value of Message.

func (s *Breadcrumb) SetTimestamp(val OptTimestamp)

SetTimestamp sets the value of Timestamp.

func (s *Breadcrumb) SetType(val OptString)

SetType sets the value of Type.

func (s *Breadcrumb) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BreadcrumbData map[string]jx.Raw
func (s *BreadcrumbData) Decode(d *jx.Decoder) error

Decode decodes BreadcrumbData from json.

func (s BreadcrumbData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (s BreadcrumbData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (s *BreadcrumbData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) Dummy

func (c *Client) Dummy(ctx context.Context) (*Event, error)

Dummy invokes dummy operation.

Dummy endpoint to generate schema definitions.

GET /dummy

func (*Client) Envelope

func (c *Client) Envelope(ctx context.Context, request *EnvelopeReqWithContentType) error

Envelope invokes envelope operation.

Sentry push.

POST /envelope

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type Context

type Context map[string]jx.Raw

See [this](https://develop.sentry.dev/sdk/event-payloads/contexts/). Ref: #/components/schemas/Context

func (*Context) Decode

func (s *Context) Decode(d *jx.Decoder) error

Decode decodes Context from json.

func (Context) Encode

func (s Context) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (Context) MarshalJSON

func (s Context) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Context) UnmarshalJSON

func (s *Context) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DebugImage

type DebugImage struct {
	Type        string    `json:"type"`
	ImageAddr   OptString `json:"image_addr"`
	ImageSize   OptInt    `json:"image_size"`
	DebugID     OptString `json:"debug_id"`
	DebugFile   OptString `json:"debug_file"`
	CodeID      OptString `json:"code_id"`
	CodeFile    OptString `json:"code_file"`
	ImageVmaddr OptString `json:"image_vmaddr"`
	Arch        OptString `json:"arch"`
	UUID        OptString `json:"uuid"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/debugmeta#debug-images). Ref: #/components/schemas/DebugImage

func (*DebugImage) Decode

func (s *DebugImage) Decode(d *jx.Decoder) error

Decode decodes DebugImage from json.

func (*DebugImage) Encode

func (s *DebugImage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DebugImage) GetArch

func (s *DebugImage) GetArch() OptString

GetArch returns the value of Arch.

func (*DebugImage) GetCodeFile

func (s *DebugImage) GetCodeFile() OptString

GetCodeFile returns the value of CodeFile.

func (*DebugImage) GetCodeID

func (s *DebugImage) GetCodeID() OptString

GetCodeID returns the value of CodeID.

func (*DebugImage) GetDebugFile

func (s *DebugImage) GetDebugFile() OptString

GetDebugFile returns the value of DebugFile.

func (*DebugImage) GetDebugID

func (s *DebugImage) GetDebugID() OptString

GetDebugID returns the value of DebugID.

func (*DebugImage) GetImageAddr

func (s *DebugImage) GetImageAddr() OptString

GetImageAddr returns the value of ImageAddr.

func (*DebugImage) GetImageSize

func (s *DebugImage) GetImageSize() OptInt

GetImageSize returns the value of ImageSize.

func (*DebugImage) GetImageVmaddr

func (s *DebugImage) GetImageVmaddr() OptString

GetImageVmaddr returns the value of ImageVmaddr.

func (*DebugImage) GetType

func (s *DebugImage) GetType() string

GetType returns the value of Type.

func (*DebugImage) GetUUID

func (s *DebugImage) GetUUID() OptString

GetUUID returns the value of UUID.

func (*DebugImage) MarshalJSON

func (s *DebugImage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DebugImage) SetArch

func (s *DebugImage) SetArch(val OptString)

SetArch sets the value of Arch.

func (*DebugImage) SetCodeFile

func (s *DebugImage) SetCodeFile(val OptString)

SetCodeFile sets the value of CodeFile.

func (*DebugImage) SetCodeID

func (s *DebugImage) SetCodeID(val OptString)

SetCodeID sets the value of CodeID.

func (*DebugImage) SetDebugFile

func (s *DebugImage) SetDebugFile(val OptString)

SetDebugFile sets the value of DebugFile.

func (*DebugImage) SetDebugID

func (s *DebugImage) SetDebugID(val OptString)

SetDebugID sets the value of DebugID.

func (*DebugImage) SetImageAddr

func (s *DebugImage) SetImageAddr(val OptString)

SetImageAddr sets the value of ImageAddr.

func (*DebugImage) SetImageSize

func (s *DebugImage) SetImageSize(val OptInt)

SetImageSize sets the value of ImageSize.

func (*DebugImage) SetImageVmaddr

func (s *DebugImage) SetImageVmaddr(val OptString)

SetImageVmaddr sets the value of ImageVmaddr.

func (*DebugImage) SetType

func (s *DebugImage) SetType(val string)

SetType sets the value of Type.

func (*DebugImage) SetUUID

func (s *DebugImage) SetUUID(val OptString)

SetUUID sets the value of UUID.

func (*DebugImage) UnmarshalJSON

func (s *DebugImage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DebugMeta

type DebugMeta struct {
	SdkInfo OptDebugMetaSdkInfo `json:"sdk_info"`
	Images  OptDebugImage       `json:"images"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/debugmeta). Ref: #/components/schemas/DebugMeta

func (*DebugMeta) Decode

func (s *DebugMeta) Decode(d *jx.Decoder) error

Decode decodes DebugMeta from json.

func (*DebugMeta) Encode

func (s *DebugMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DebugMeta) GetImages

func (s *DebugMeta) GetImages() OptDebugImage

GetImages returns the value of Images.

func (*DebugMeta) GetSdkInfo

func (s *DebugMeta) GetSdkInfo() OptDebugMetaSdkInfo

GetSdkInfo returns the value of SdkInfo.

func (*DebugMeta) MarshalJSON

func (s *DebugMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DebugMeta) SetImages

func (s *DebugMeta) SetImages(val OptDebugImage)

SetImages sets the value of Images.

func (*DebugMeta) SetSdkInfo

func (s *DebugMeta) SetSdkInfo(val OptDebugMetaSdkInfo)

SetSdkInfo sets the value of SdkInfo.

func (*DebugMeta) UnmarshalJSON

func (s *DebugMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DebugMetaSdkInfo

type DebugMetaSdkInfo struct {
	SdkName           OptString `json:"sdk_name"`
	VersionMajor      OptInt    `json:"version_major"`
	VersionMinor      OptInt    `json:"version_minor"`
	VersionPatchlevel OptInt    `json:"version_patchlevel"`
}

Ref: #/components/schemas/DebugMetaSdkInfo

func (*DebugMetaSdkInfo) Decode

func (s *DebugMetaSdkInfo) Decode(d *jx.Decoder) error

Decode decodes DebugMetaSdkInfo from json.

func (*DebugMetaSdkInfo) Encode

func (s *DebugMetaSdkInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DebugMetaSdkInfo) GetSdkName

func (s *DebugMetaSdkInfo) GetSdkName() OptString

GetSdkName returns the value of SdkName.

func (*DebugMetaSdkInfo) GetVersionMajor

func (s *DebugMetaSdkInfo) GetVersionMajor() OptInt

GetVersionMajor returns the value of VersionMajor.

func (*DebugMetaSdkInfo) GetVersionMinor

func (s *DebugMetaSdkInfo) GetVersionMinor() OptInt

GetVersionMinor returns the value of VersionMinor.

func (*DebugMetaSdkInfo) GetVersionPatchlevel

func (s *DebugMetaSdkInfo) GetVersionPatchlevel() OptInt

GetVersionPatchlevel returns the value of VersionPatchlevel.

func (*DebugMetaSdkInfo) MarshalJSON

func (s *DebugMetaSdkInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DebugMetaSdkInfo) SetSdkName

func (s *DebugMetaSdkInfo) SetSdkName(val OptString)

SetSdkName sets the value of SdkName.

func (*DebugMetaSdkInfo) SetVersionMajor

func (s *DebugMetaSdkInfo) SetVersionMajor(val OptInt)

SetVersionMajor sets the value of VersionMajor.

func (*DebugMetaSdkInfo) SetVersionMinor

func (s *DebugMetaSdkInfo) SetVersionMinor(val OptInt)

SetVersionMinor sets the value of VersionMinor.

func (*DebugMetaSdkInfo) SetVersionPatchlevel

func (s *DebugMetaSdkInfo) SetVersionPatchlevel(val OptInt)

SetVersionPatchlevel sets the value of VersionPatchlevel.

func (*DebugMetaSdkInfo) UnmarshalJSON

func (s *DebugMetaSdkInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EnvelopeOK

type EnvelopeOK struct{}

EnvelopeOK is response for Envelope operation.

type EnvelopeReq

type EnvelopeReq struct {
	Data io.Reader
}

func (EnvelopeReq) Read

func (s EnvelopeReq) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type EnvelopeReqWithContentType

type EnvelopeReqWithContentType struct {
	ContentType string
	Content     EnvelopeReq
}

EnvelopeReqWithContentType wraps EnvelopeReq with Content-Type.

func (*EnvelopeReqWithContentType) GetContent

func (s *EnvelopeReqWithContentType) GetContent() EnvelopeReq

GetContent returns the value of Content.

func (*EnvelopeReqWithContentType) GetContentType

func (s *EnvelopeReqWithContentType) GetContentType() string

GetContentType returns the value of ContentType.

func (*EnvelopeReqWithContentType) SetContent

func (s *EnvelopeReqWithContentType) SetContent(val EnvelopeReq)

SetContent sets the value of Content.

func (*EnvelopeReqWithContentType) SetContentType

func (s *EnvelopeReqWithContentType) SetContentType(val string)

SetContentType sets the value of ContentType.

type Errno

type Errno struct {
	Number int       `json:"number"`
	Name   OptString `json:"name"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/exception/#errno). Ref: #/components/schemas/Errno

func (*Errno) Decode

func (s *Errno) Decode(d *jx.Decoder) error

Decode decodes Errno from json.

func (*Errno) Encode

func (s *Errno) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Errno) GetName

func (s *Errno) GetName() OptString

GetName returns the value of Name.

func (*Errno) GetNumber

func (s *Errno) GetNumber() int

GetNumber returns the value of Number.

func (*Errno) MarshalJSON

func (s *Errno) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Errno) SetName

func (s *Errno) SetName(val OptString)

SetName sets the value of Name.

func (*Errno) SetNumber

func (s *Errno) SetNumber(val int)

SetNumber sets the value of Number.

func (*Errno) UnmarshalJSON

func (s *Errno) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Error

type Error string

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (Error) Encode

func (s Error) Encode(e *jx.Encoder)

Encode encodes Error as json.

func (Error) MarshalJSON

func (s Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ErrorStatusCode

type ErrorStatusCode struct {
	StatusCode int
	Response   Error
}

ErrorStatusCode wraps Error with StatusCode.

func (*ErrorStatusCode) Error

func (s *ErrorStatusCode) Error() string

func (*ErrorStatusCode) GetResponse

func (s *ErrorStatusCode) GetResponse() Error

GetResponse returns the value of Response.

func (*ErrorStatusCode) GetStatusCode

func (s *ErrorStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorStatusCode) SetResponse

func (s *ErrorStatusCode) SetResponse(val Error)

SetResponse sets the value of Response.

func (*ErrorStatusCode) SetStatusCode

func (s *ErrorStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type Event

type Event struct {
	Breadcrumbs     []Breadcrumb       `json:"breadcrumbs"`
	Contexts        OptEventContexts   `json:"contexts"`
	Dist            OptString          `json:"dist"`
	Environment     OptString          `json:"environment"`
	EventID         EventID            `json:"event_id"`
	Extra           OptEventExtra      `json:"extra"`
	Fingerprint     []string           `json:"fingerprint"`
	Level           OptLevel           `json:"level"`
	Message         OptString          `json:"message"`
	Platform        string             `json:"platform"`
	Release         OptString          `json:"release"`
	Sdk             OptSdkInfo         `json:"sdk"`
	ServerName      OptString          `json:"server_name"`
	Threads         []Thread           `json:"threads"`
	Tags            OptEventTags       `json:"tags"`
	Timestamp       Timestamp          `json:"timestamp"`
	Transaction     OptString          `json:"transaction"`
	User            OptUser            `json:"user"`
	Logger          OptString          `json:"logger"`
	Modules         OptEventModules    `json:"modules"`
	Request         OptRequest         `json:"request"`
	Exception       []Exception        `json:"exception"`
	DebugMeta       OptDebugMeta       `json:"debug_meta"`
	Type            OptString          `json:"type"`
	StartTimestamp  OptTimestamp       `json:"start_timestamp"`
	Spans           []Span             `json:"spans"`
	TransactionInfo OptTransactionInfo `json:"transaction_info"`
}

Event is the fundamental data structure that is sent to Sentry. See [this](https://develop.sentry.dev/sdk/event-payloads). Ref: #/components/schemas/Event

func (*Event) Decode

func (s *Event) Decode(d *jx.Decoder) error

Decode decodes Event from json.

func (*Event) Encode

func (s *Event) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Event) GetBreadcrumbs

func (s *Event) GetBreadcrumbs() []Breadcrumb

GetBreadcrumbs returns the value of Breadcrumbs.

func (*Event) GetContexts

func (s *Event) GetContexts() OptEventContexts

GetContexts returns the value of Contexts.

func (*Event) GetDebugMeta

func (s *Event) GetDebugMeta() OptDebugMeta

GetDebugMeta returns the value of DebugMeta.

func (*Event) GetDist

func (s *Event) GetDist() OptString

GetDist returns the value of Dist.

func (*Event) GetEnvironment

func (s *Event) GetEnvironment() OptString

GetEnvironment returns the value of Environment.

func (*Event) GetEventID

func (s *Event) GetEventID() EventID

GetEventID returns the value of EventID.

func (*Event) GetException

func (s *Event) GetException() []Exception

GetException returns the value of Exception.

func (*Event) GetExtra

func (s *Event) GetExtra() OptEventExtra

GetExtra returns the value of Extra.

func (*Event) GetFingerprint

func (s *Event) GetFingerprint() []string

GetFingerprint returns the value of Fingerprint.

func (*Event) GetLevel

func (s *Event) GetLevel() OptLevel

GetLevel returns the value of Level.

func (*Event) GetLogger

func (s *Event) GetLogger() OptString

GetLogger returns the value of Logger.

func (*Event) GetMessage

func (s *Event) GetMessage() OptString

GetMessage returns the value of Message.

func (*Event) GetModules

func (s *Event) GetModules() OptEventModules

GetModules returns the value of Modules.

func (*Event) GetPlatform

func (s *Event) GetPlatform() string

GetPlatform returns the value of Platform.

func (*Event) GetRelease

func (s *Event) GetRelease() OptString

GetRelease returns the value of Release.

func (*Event) GetRequest

func (s *Event) GetRequest() OptRequest

GetRequest returns the value of Request.

func (*Event) GetSdk

func (s *Event) GetSdk() OptSdkInfo

GetSdk returns the value of Sdk.

func (*Event) GetServerName

func (s *Event) GetServerName() OptString

GetServerName returns the value of ServerName.

func (*Event) GetSpans

func (s *Event) GetSpans() []Span

GetSpans returns the value of Spans.

func (*Event) GetStartTimestamp

func (s *Event) GetStartTimestamp() OptTimestamp

GetStartTimestamp returns the value of StartTimestamp.

func (*Event) GetTags

func (s *Event) GetTags() OptEventTags

GetTags returns the value of Tags.

func (*Event) GetThreads

func (s *Event) GetThreads() []Thread

GetThreads returns the value of Threads.

func (*Event) GetTimestamp

func (s *Event) GetTimestamp() Timestamp

GetTimestamp returns the value of Timestamp.

func (*Event) GetTransaction

func (s *Event) GetTransaction() OptString

GetTransaction returns the value of Transaction.

func (*Event) GetTransactionInfo

func (s *Event) GetTransactionInfo() OptTransactionInfo

GetTransactionInfo returns the value of TransactionInfo.

func (*Event) GetType

func (s *Event) GetType() OptString

GetType returns the value of Type.

func (*Event) GetUser

func (s *Event) GetUser() OptUser

GetUser returns the value of User.

func (*Event) MarshalJSON

func (s *Event) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Event) SetBreadcrumbs

func (s *Event) SetBreadcrumbs(val []Breadcrumb)

SetBreadcrumbs sets the value of Breadcrumbs.

func (*Event) SetContexts

func (s *Event) SetContexts(val OptEventContexts)

SetContexts sets the value of Contexts.

func (*Event) SetDebugMeta

func (s *Event) SetDebugMeta(val OptDebugMeta)

SetDebugMeta sets the value of DebugMeta.

func (*Event) SetDist

func (s *Event) SetDist(val OptString)

SetDist sets the value of Dist.

func (*Event) SetEnvironment

func (s *Event) SetEnvironment(val OptString)

SetEnvironment sets the value of Environment.

func (*Event) SetEventID

func (s *Event) SetEventID(val EventID)

SetEventID sets the value of EventID.

func (*Event) SetException

func (s *Event) SetException(val []Exception)

SetException sets the value of Exception.

func (*Event) SetExtra

func (s *Event) SetExtra(val OptEventExtra)

SetExtra sets the value of Extra.

func (*Event) SetFingerprint

func (s *Event) SetFingerprint(val []string)

SetFingerprint sets the value of Fingerprint.

func (*Event) SetLevel

func (s *Event) SetLevel(val OptLevel)

SetLevel sets the value of Level.

func (*Event) SetLogger

func (s *Event) SetLogger(val OptString)

SetLogger sets the value of Logger.

func (*Event) SetMessage

func (s *Event) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*Event) SetModules

func (s *Event) SetModules(val OptEventModules)

SetModules sets the value of Modules.

func (*Event) SetPlatform

func (s *Event) SetPlatform(val string)

SetPlatform sets the value of Platform.

func (*Event) SetRelease

func (s *Event) SetRelease(val OptString)

SetRelease sets the value of Release.

func (*Event) SetRequest

func (s *Event) SetRequest(val OptRequest)

SetRequest sets the value of Request.

func (*Event) SetSdk

func (s *Event) SetSdk(val OptSdkInfo)

SetSdk sets the value of Sdk.

func (*Event) SetServerName

func (s *Event) SetServerName(val OptString)

SetServerName sets the value of ServerName.

func (*Event) SetSpans

func (s *Event) SetSpans(val []Span)

SetSpans sets the value of Spans.

func (*Event) SetStartTimestamp

func (s *Event) SetStartTimestamp(val OptTimestamp)

SetStartTimestamp sets the value of StartTimestamp.

func (*Event) SetTags

func (s *Event) SetTags(val OptEventTags)

SetTags sets the value of Tags.

func (*Event) SetThreads

func (s *Event) SetThreads(val []Thread)

SetThreads sets the value of Threads.

func (*Event) SetTimestamp

func (s *Event) SetTimestamp(val Timestamp)

SetTimestamp sets the value of Timestamp.

func (*Event) SetTransaction

func (s *Event) SetTransaction(val OptString)

SetTransaction sets the value of Transaction.

func (*Event) SetTransactionInfo

func (s *Event) SetTransactionInfo(val OptTransactionInfo)

SetTransactionInfo sets the value of TransactionInfo.

func (*Event) SetType

func (s *Event) SetType(val OptString)

SetType sets the value of Type.

func (*Event) SetUser

func (s *Event) SetUser(val OptUser)

SetUser sets the value of User.

func (*Event) UnmarshalJSON

func (s *Event) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Event) Validate

func (s *Event) Validate() error

type EventContexts

type EventContexts map[string]Context

func (*EventContexts) Decode

func (s *EventContexts) Decode(d *jx.Decoder) error

Decode decodes EventContexts from json.

func (EventContexts) Encode

func (s EventContexts) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (EventContexts) MarshalJSON

func (s EventContexts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EventContexts) UnmarshalJSON

func (s *EventContexts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EventExtra

type EventExtra map[string]jx.Raw

func (*EventExtra) Decode

func (s *EventExtra) Decode(d *jx.Decoder) error

Decode decodes EventExtra from json.

func (EventExtra) Encode

func (s EventExtra) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (EventExtra) MarshalJSON

func (s EventExtra) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EventExtra) UnmarshalJSON

func (s *EventExtra) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EventID

type EventID string

func (*EventID) Decode

func (s *EventID) Decode(d *jx.Decoder) error

Decode decodes EventID from json.

func (EventID) Encode

func (s EventID) Encode(e *jx.Encoder)

Encode encodes EventID as json.

func (EventID) MarshalJSON

func (s EventID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EventID) UnmarshalJSON

func (s *EventID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (EventID) Validate

func (s EventID) Validate() error

type EventModules

type EventModules map[string]string

func (*EventModules) Decode

func (s *EventModules) Decode(d *jx.Decoder) error

Decode decodes EventModules from json.

func (EventModules) Encode

func (s EventModules) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (EventModules) MarshalJSON

func (s EventModules) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EventModules) UnmarshalJSON

func (s *EventModules) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EventTags

type EventTags map[string]string

func (*EventTags) Decode

func (s *EventTags) Decode(d *jx.Decoder) error

Decode decodes EventTags from json.

func (EventTags) Encode

func (s EventTags) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (EventTags) MarshalJSON

func (s EventTags) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EventTags) UnmarshalJSON

func (s *EventTags) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Exception

type Exception struct {
	Type       string        `json:"type"`
	Value      string        `json:"value"`
	Module     OptString     `json:"module"`
	ThreadID   OptString     `json:"thread_id"`
	Stacktrace OptStacktrace `json:"stacktrace"`
	Mechanism  OptMechanism  `json:"mechanism"`
}

Exception specifies an error that occurred. See [this](https://develop.sentry.dev/sdk/event-payloads/exception/). Ref: #/components/schemas/Exception

func (*Exception) Decode

func (s *Exception) Decode(d *jx.Decoder) error

Decode decodes Exception from json.

func (*Exception) Encode

func (s *Exception) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Exception) GetMechanism

func (s *Exception) GetMechanism() OptMechanism

GetMechanism returns the value of Mechanism.

func (*Exception) GetModule

func (s *Exception) GetModule() OptString

GetModule returns the value of Module.

func (*Exception) GetStacktrace

func (s *Exception) GetStacktrace() OptStacktrace

GetStacktrace returns the value of Stacktrace.

func (*Exception) GetThreadID

func (s *Exception) GetThreadID() OptString

GetThreadID returns the value of ThreadID.

func (*Exception) GetType

func (s *Exception) GetType() string

GetType returns the value of Type.

func (*Exception) GetValue

func (s *Exception) GetValue() string

GetValue returns the value of Value.

func (*Exception) MarshalJSON

func (s *Exception) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Exception) SetMechanism

func (s *Exception) SetMechanism(val OptMechanism)

SetMechanism sets the value of Mechanism.

func (*Exception) SetModule

func (s *Exception) SetModule(val OptString)

SetModule sets the value of Module.

func (*Exception) SetStacktrace

func (s *Exception) SetStacktrace(val OptStacktrace)

SetStacktrace sets the value of Stacktrace.

func (*Exception) SetThreadID

func (s *Exception) SetThreadID(val OptString)

SetThreadID sets the value of ThreadID.

func (*Exception) SetType

func (s *Exception) SetType(val string)

SetType sets the value of Type.

func (*Exception) SetValue

func (s *Exception) SetValue(val string)

SetValue sets the value of Value.

func (*Exception) UnmarshalJSON

func (s *Exception) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Frame

type Frame struct {
	Function        OptString    `json:"function"`
	Symbol          OptString    `json:"symbol"`
	Module          OptString    `json:"module"`
	Filename        OptString    `json:"filename"`
	AbsPath         OptString    `json:"abs_path"`
	Lineno          OptInt       `json:"lineno"`
	Colno           OptInt       `json:"colno"`
	PreContext      []string     `json:"pre_context"`
	ContextLine     OptString    `json:"context_line"`
	PostContext     []string     `json:"post_context"`
	InApp           OptBool      `json:"in_app"`
	Vars            OptFrameVars `json:"vars"`
	Package         OptString    `json:"package"`
	InstructionAddr OptString    `json:"instruction_addr"`
	AddrMode        OptString    `json:"addr_mode"`
	SymbolAddr      OptString    `json:"symbol_addr"`
	ImageAddr       OptString    `json:"image_addr"`
	Platform        OptString    `json:"platform"`
	StackStart      OptBool      `json:"stack_start"`
}

Frame represents a function call and it's metadata. Frames are associated with a Stacktrace. See [this](https://develop.sentry.dev/sdk/event-payloads/stacktrace/). Ref: #/components/schemas/Frame

func (*Frame) Decode

func (s *Frame) Decode(d *jx.Decoder) error

Decode decodes Frame from json.

func (*Frame) Encode

func (s *Frame) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Frame) GetAbsPath

func (s *Frame) GetAbsPath() OptString

GetAbsPath returns the value of AbsPath.

func (*Frame) GetAddrMode

func (s *Frame) GetAddrMode() OptString

GetAddrMode returns the value of AddrMode.

func (*Frame) GetColno

func (s *Frame) GetColno() OptInt

GetColno returns the value of Colno.

func (*Frame) GetContextLine

func (s *Frame) GetContextLine() OptString

GetContextLine returns the value of ContextLine.

func (*Frame) GetFilename

func (s *Frame) GetFilename() OptString

GetFilename returns the value of Filename.

func (*Frame) GetFunction

func (s *Frame) GetFunction() OptString

GetFunction returns the value of Function.

func (*Frame) GetImageAddr

func (s *Frame) GetImageAddr() OptString

GetImageAddr returns the value of ImageAddr.

func (*Frame) GetInApp

func (s *Frame) GetInApp() OptBool

GetInApp returns the value of InApp.

func (*Frame) GetInstructionAddr

func (s *Frame) GetInstructionAddr() OptString

GetInstructionAddr returns the value of InstructionAddr.

func (*Frame) GetLineno

func (s *Frame) GetLineno() OptInt

GetLineno returns the value of Lineno.

func (*Frame) GetModule

func (s *Frame) GetModule() OptString

GetModule returns the value of Module.

func (*Frame) GetPackage

func (s *Frame) GetPackage() OptString

GetPackage returns the value of Package.

func (*Frame) GetPlatform

func (s *Frame) GetPlatform() OptString

GetPlatform returns the value of Platform.

func (*Frame) GetPostContext

func (s *Frame) GetPostContext() []string

GetPostContext returns the value of PostContext.

func (*Frame) GetPreContext

func (s *Frame) GetPreContext() []string

GetPreContext returns the value of PreContext.

func (*Frame) GetStackStart

func (s *Frame) GetStackStart() OptBool

GetStackStart returns the value of StackStart.

func (*Frame) GetSymbol

func (s *Frame) GetSymbol() OptString

GetSymbol returns the value of Symbol.

func (*Frame) GetSymbolAddr

func (s *Frame) GetSymbolAddr() OptString

GetSymbolAddr returns the value of SymbolAddr.

func (*Frame) GetVars

func (s *Frame) GetVars() OptFrameVars

GetVars returns the value of Vars.

func (*Frame) MarshalJSON

func (s *Frame) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Frame) SetAbsPath

func (s *Frame) SetAbsPath(val OptString)

SetAbsPath sets the value of AbsPath.

func (*Frame) SetAddrMode

func (s *Frame) SetAddrMode(val OptString)

SetAddrMode sets the value of AddrMode.

func (*Frame) SetColno

func (s *Frame) SetColno(val OptInt)

SetColno sets the value of Colno.

func (*Frame) SetContextLine

func (s *Frame) SetContextLine(val OptString)

SetContextLine sets the value of ContextLine.

func (*Frame) SetFilename

func (s *Frame) SetFilename(val OptString)

SetFilename sets the value of Filename.

func (*Frame) SetFunction

func (s *Frame) SetFunction(val OptString)

SetFunction sets the value of Function.

func (*Frame) SetImageAddr

func (s *Frame) SetImageAddr(val OptString)

SetImageAddr sets the value of ImageAddr.

func (*Frame) SetInApp

func (s *Frame) SetInApp(val OptBool)

SetInApp sets the value of InApp.

func (*Frame) SetInstructionAddr

func (s *Frame) SetInstructionAddr(val OptString)

SetInstructionAddr sets the value of InstructionAddr.

func (*Frame) SetLineno

func (s *Frame) SetLineno(val OptInt)

SetLineno sets the value of Lineno.

func (*Frame) SetModule

func (s *Frame) SetModule(val OptString)

SetModule sets the value of Module.

func (*Frame) SetPackage

func (s *Frame) SetPackage(val OptString)

SetPackage sets the value of Package.

func (*Frame) SetPlatform

func (s *Frame) SetPlatform(val OptString)

SetPlatform sets the value of Platform.

func (*Frame) SetPostContext

func (s *Frame) SetPostContext(val []string)

SetPostContext sets the value of PostContext.

func (*Frame) SetPreContext

func (s *Frame) SetPreContext(val []string)

SetPreContext sets the value of PreContext.

func (*Frame) SetStackStart

func (s *Frame) SetStackStart(val OptBool)

SetStackStart sets the value of StackStart.

func (*Frame) SetSymbol

func (s *Frame) SetSymbol(val OptString)

SetSymbol sets the value of Symbol.

func (*Frame) SetSymbolAddr

func (s *Frame) SetSymbolAddr(val OptString)

SetSymbolAddr sets the value of SymbolAddr.

func (*Frame) SetVars

func (s *Frame) SetVars(val OptFrameVars)

SetVars sets the value of Vars.

func (*Frame) UnmarshalJSON

func (s *Frame) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FrameVars

type FrameVars map[string]jx.Raw

func (*FrameVars) Decode

func (s *FrameVars) Decode(d *jx.Decoder) error

Decode decodes FrameVars from json.

func (FrameVars) Encode

func (s FrameVars) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FrameVars) MarshalJSON

func (s FrameVars) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FrameVars) UnmarshalJSON

func (s *FrameVars) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Handler

type Handler interface {
	// Dummy implements dummy operation.
	//
	// Dummy endpoint to generate schema definitions.
	//
	// GET /dummy
	Dummy(ctx context.Context) (*Event, error)
	// Envelope implements envelope operation.
	//
	// Sentry push.
	//
	// POST /envelope
	Envelope(ctx context.Context, req *EnvelopeReqWithContentType) error
	// NewError creates *ErrorStatusCode from error returned by handler.
	//
	// Used for common default response.
	NewError(ctx context.Context, err error) *ErrorStatusCode
}

Handler handles operations described by OpenAPI v3 specification.

type Invoker added in v0.1.0

type Invoker interface {
	// Dummy invokes dummy operation.
	//
	// Dummy endpoint to generate schema definitions.
	//
	// GET /dummy
	Dummy(ctx context.Context) (*Event, error)
	// Envelope invokes envelope operation.
	//
	// Sentry push.
	//
	// POST /envelope
	Envelope(ctx context.Context, request *EnvelopeReqWithContentType) error
}

Invoker invokes operations described by OpenAPI v3 specification.

type Labeler added in v0.10.0

type Labeler struct {
	// contains filtered or unexported fields
}

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext added in v0.10.0

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add added in v0.10.0

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet added in v0.10.0

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type Level

type Level string

func (*Level) Decode

func (s *Level) Decode(d *jx.Decoder) error

Decode decodes Level from json.

func (Level) Encode

func (s Level) Encode(e *jx.Encoder)

Encode encodes Level as json.

func (Level) MarshalJSON

func (s Level) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Level) UnmarshalJSON

func (s *Level) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MachException

type MachException struct {
	Exception int       `json:"exception"`
	Code      int       `json:"code"`
	Subcode   int       `json:"subcode"`
	Name      OptString `json:"name"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/exception/#mach_exception). Ref: #/components/schemas/MachException

func (*MachException) Decode

func (s *MachException) Decode(d *jx.Decoder) error

Decode decodes MachException from json.

func (*MachException) Encode

func (s *MachException) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MachException) GetCode

func (s *MachException) GetCode() int

GetCode returns the value of Code.

func (*MachException) GetException

func (s *MachException) GetException() int

GetException returns the value of Exception.

func (*MachException) GetName

func (s *MachException) GetName() OptString

GetName returns the value of Name.

func (*MachException) GetSubcode

func (s *MachException) GetSubcode() int

GetSubcode returns the value of Subcode.

func (*MachException) MarshalJSON

func (s *MachException) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MachException) SetCode

func (s *MachException) SetCode(val int)

SetCode sets the value of Code.

func (*MachException) SetException

func (s *MachException) SetException(val int)

SetException sets the value of Exception.

func (*MachException) SetName

func (s *MachException) SetName(val OptString)

SetName sets the value of Name.

func (*MachException) SetSubcode

func (s *MachException) SetSubcode(val int)

SetSubcode sets the value of Subcode.

func (*MachException) UnmarshalJSON

func (s *MachException) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Mechanism

type Mechanism struct {
	Type        string           `json:"type"`
	Description OptString        `json:"description"`
	HelpLink    OptString        `json:"help_link"`
	Handled     OptBool          `json:"handled"`
	Synthetic   OptBool          `json:"synthetic"`
	Meta        OptMechanismMeta `json:"meta"`
	Data        OptMechanismData `json:"data"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/exception/#exception-mechanism). Ref: #/components/schemas/Mechanism

func (*Mechanism) Decode

func (s *Mechanism) Decode(d *jx.Decoder) error

Decode decodes Mechanism from json.

func (*Mechanism) Encode

func (s *Mechanism) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Mechanism) GetData

func (s *Mechanism) GetData() OptMechanismData

GetData returns the value of Data.

func (*Mechanism) GetDescription

func (s *Mechanism) GetDescription() OptString

GetDescription returns the value of Description.

func (*Mechanism) GetHandled

func (s *Mechanism) GetHandled() OptBool

GetHandled returns the value of Handled.

func (s *Mechanism) GetHelpLink() OptString

GetHelpLink returns the value of HelpLink.

func (*Mechanism) GetMeta

func (s *Mechanism) GetMeta() OptMechanismMeta

GetMeta returns the value of Meta.

func (*Mechanism) GetSynthetic

func (s *Mechanism) GetSynthetic() OptBool

GetSynthetic returns the value of Synthetic.

func (*Mechanism) GetType

func (s *Mechanism) GetType() string

GetType returns the value of Type.

func (*Mechanism) MarshalJSON

func (s *Mechanism) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Mechanism) SetData

func (s *Mechanism) SetData(val OptMechanismData)

SetData sets the value of Data.

func (*Mechanism) SetDescription

func (s *Mechanism) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Mechanism) SetHandled

func (s *Mechanism) SetHandled(val OptBool)

SetHandled sets the value of Handled.

func (s *Mechanism) SetHelpLink(val OptString)

SetHelpLink sets the value of HelpLink.

func (*Mechanism) SetMeta

func (s *Mechanism) SetMeta(val OptMechanismMeta)

SetMeta sets the value of Meta.

func (*Mechanism) SetSynthetic

func (s *Mechanism) SetSynthetic(val OptBool)

SetSynthetic sets the value of Synthetic.

func (*Mechanism) SetType

func (s *Mechanism) SetType(val string)

SetType sets the value of Type.

func (*Mechanism) UnmarshalJSON

func (s *Mechanism) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MechanismData

type MechanismData map[string]jx.Raw

func (*MechanismData) Decode

func (s *MechanismData) Decode(d *jx.Decoder) error

Decode decodes MechanismData from json.

func (MechanismData) Encode

func (s MechanismData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (MechanismData) MarshalJSON

func (s MechanismData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MechanismData) UnmarshalJSON

func (s *MechanismData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MechanismMeta

type MechanismMeta struct {
	Signal        OptSignal        `json:"signal"`
	MachException OptMachException `json:"mach_exception"`
	NsError       OptNSError       `json:"ns_error"`
	Errno         OptErrno         `json:"errno"`
}

func (*MechanismMeta) Decode

func (s *MechanismMeta) Decode(d *jx.Decoder) error

Decode decodes MechanismMeta from json.

func (*MechanismMeta) Encode

func (s *MechanismMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MechanismMeta) GetErrno

func (s *MechanismMeta) GetErrno() OptErrno

GetErrno returns the value of Errno.

func (*MechanismMeta) GetMachException

func (s *MechanismMeta) GetMachException() OptMachException

GetMachException returns the value of MachException.

func (*MechanismMeta) GetNsError

func (s *MechanismMeta) GetNsError() OptNSError

GetNsError returns the value of NsError.

func (*MechanismMeta) GetSignal

func (s *MechanismMeta) GetSignal() OptSignal

GetSignal returns the value of Signal.

func (*MechanismMeta) MarshalJSON

func (s *MechanismMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MechanismMeta) SetErrno

func (s *MechanismMeta) SetErrno(val OptErrno)

SetErrno sets the value of Errno.

func (*MechanismMeta) SetMachException

func (s *MechanismMeta) SetMachException(val OptMachException)

SetMachException sets the value of MachException.

func (*MechanismMeta) SetNsError

func (s *MechanismMeta) SetNsError(val OptNSError)

SetNsError sets the value of NsError.

func (*MechanismMeta) SetSignal

func (s *MechanismMeta) SetSignal(val OptSignal)

SetSignal sets the value of Signal.

func (*MechanismMeta) UnmarshalJSON

func (s *MechanismMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type NSError

type NSError struct {
	Code   int       `json:"code"`
	Domain OptString `json:"domain"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/exception/#ns_error). Ref: #/components/schemas/NSError

func (*NSError) Decode

func (s *NSError) Decode(d *jx.Decoder) error

Decode decodes NSError from json.

func (*NSError) Encode

func (s *NSError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NSError) GetCode

func (s *NSError) GetCode() int

GetCode returns the value of Code.

func (*NSError) GetDomain

func (s *NSError) GetDomain() OptString

GetDomain returns the value of Domain.

func (*NSError) MarshalJSON

func (s *NSError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NSError) SetCode

func (s *NSError) SetCode(val int)

SetCode sets the value of Code.

func (*NSError) SetDomain

func (s *NSError) SetDomain(val OptString)

SetDomain sets the value of Domain.

func (*NSError) UnmarshalJSON

func (s *NSError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBreadcrumbData

type OptBreadcrumbData struct {
	Value BreadcrumbData
	Set   bool
}

OptBreadcrumbData is optional BreadcrumbData.

func NewOptBreadcrumbData

func NewOptBreadcrumbData(v BreadcrumbData) OptBreadcrumbData

NewOptBreadcrumbData returns new OptBreadcrumbData with value set to v.

func (*OptBreadcrumbData) Decode

func (o *OptBreadcrumbData) Decode(d *jx.Decoder) error

Decode decodes BreadcrumbData from json.

func (OptBreadcrumbData) Encode

func (o OptBreadcrumbData) Encode(e *jx.Encoder)

Encode encodes BreadcrumbData as json.

func (OptBreadcrumbData) Get

func (o OptBreadcrumbData) Get() (v BreadcrumbData, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBreadcrumbData) IsSet

func (o OptBreadcrumbData) IsSet() bool

IsSet returns true if OptBreadcrumbData was set.

func (OptBreadcrumbData) MarshalJSON

func (s OptBreadcrumbData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBreadcrumbData) Or

Or returns value if set, or given parameter if does not.

func (*OptBreadcrumbData) Reset

func (o *OptBreadcrumbData) Reset()

Reset unsets value.

func (*OptBreadcrumbData) SetTo

func (o *OptBreadcrumbData) SetTo(v BreadcrumbData)

SetTo sets value to v.

func (*OptBreadcrumbData) UnmarshalJSON

func (s *OptBreadcrumbData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDebugImage

type OptDebugImage struct {
	Value DebugImage
	Set   bool
}

OptDebugImage is optional DebugImage.

func NewOptDebugImage

func NewOptDebugImage(v DebugImage) OptDebugImage

NewOptDebugImage returns new OptDebugImage with value set to v.

func (*OptDebugImage) Decode

func (o *OptDebugImage) Decode(d *jx.Decoder) error

Decode decodes DebugImage from json.

func (OptDebugImage) Encode

func (o OptDebugImage) Encode(e *jx.Encoder)

Encode encodes DebugImage as json.

func (OptDebugImage) Get

func (o OptDebugImage) Get() (v DebugImage, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDebugImage) IsSet

func (o OptDebugImage) IsSet() bool

IsSet returns true if OptDebugImage was set.

func (OptDebugImage) MarshalJSON

func (s OptDebugImage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDebugImage) Or

Or returns value if set, or given parameter if does not.

func (*OptDebugImage) Reset

func (o *OptDebugImage) Reset()

Reset unsets value.

func (*OptDebugImage) SetTo

func (o *OptDebugImage) SetTo(v DebugImage)

SetTo sets value to v.

func (*OptDebugImage) UnmarshalJSON

func (s *OptDebugImage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDebugMeta

type OptDebugMeta struct {
	Value DebugMeta
	Set   bool
}

OptDebugMeta is optional DebugMeta.

func NewOptDebugMeta

func NewOptDebugMeta(v DebugMeta) OptDebugMeta

NewOptDebugMeta returns new OptDebugMeta with value set to v.

func (*OptDebugMeta) Decode

func (o *OptDebugMeta) Decode(d *jx.Decoder) error

Decode decodes DebugMeta from json.

func (OptDebugMeta) Encode

func (o OptDebugMeta) Encode(e *jx.Encoder)

Encode encodes DebugMeta as json.

func (OptDebugMeta) Get

func (o OptDebugMeta) Get() (v DebugMeta, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDebugMeta) IsSet

func (o OptDebugMeta) IsSet() bool

IsSet returns true if OptDebugMeta was set.

func (OptDebugMeta) MarshalJSON

func (s OptDebugMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDebugMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptDebugMeta) Reset

func (o *OptDebugMeta) Reset()

Reset unsets value.

func (*OptDebugMeta) SetTo

func (o *OptDebugMeta) SetTo(v DebugMeta)

SetTo sets value to v.

func (*OptDebugMeta) UnmarshalJSON

func (s *OptDebugMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDebugMetaSdkInfo

type OptDebugMetaSdkInfo struct {
	Value DebugMetaSdkInfo
	Set   bool
}

OptDebugMetaSdkInfo is optional DebugMetaSdkInfo.

func NewOptDebugMetaSdkInfo

func NewOptDebugMetaSdkInfo(v DebugMetaSdkInfo) OptDebugMetaSdkInfo

NewOptDebugMetaSdkInfo returns new OptDebugMetaSdkInfo with value set to v.

func (*OptDebugMetaSdkInfo) Decode

func (o *OptDebugMetaSdkInfo) Decode(d *jx.Decoder) error

Decode decodes DebugMetaSdkInfo from json.

func (OptDebugMetaSdkInfo) Encode

func (o OptDebugMetaSdkInfo) Encode(e *jx.Encoder)

Encode encodes DebugMetaSdkInfo as json.

func (OptDebugMetaSdkInfo) Get

func (o OptDebugMetaSdkInfo) Get() (v DebugMetaSdkInfo, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDebugMetaSdkInfo) IsSet

func (o OptDebugMetaSdkInfo) IsSet() bool

IsSet returns true if OptDebugMetaSdkInfo was set.

func (OptDebugMetaSdkInfo) MarshalJSON

func (s OptDebugMetaSdkInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDebugMetaSdkInfo) Or

Or returns value if set, or given parameter if does not.

func (*OptDebugMetaSdkInfo) Reset

func (o *OptDebugMetaSdkInfo) Reset()

Reset unsets value.

func (*OptDebugMetaSdkInfo) SetTo

SetTo sets value to v.

func (*OptDebugMetaSdkInfo) UnmarshalJSON

func (s *OptDebugMetaSdkInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptErrno

type OptErrno struct {
	Value Errno
	Set   bool
}

OptErrno is optional Errno.

func NewOptErrno

func NewOptErrno(v Errno) OptErrno

NewOptErrno returns new OptErrno with value set to v.

func (*OptErrno) Decode

func (o *OptErrno) Decode(d *jx.Decoder) error

Decode decodes Errno from json.

func (OptErrno) Encode

func (o OptErrno) Encode(e *jx.Encoder)

Encode encodes Errno as json.

func (OptErrno) Get

func (o OptErrno) Get() (v Errno, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptErrno) IsSet

func (o OptErrno) IsSet() bool

IsSet returns true if OptErrno was set.

func (OptErrno) MarshalJSON

func (s OptErrno) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptErrno) Or

func (o OptErrno) Or(d Errno) Errno

Or returns value if set, or given parameter if does not.

func (*OptErrno) Reset

func (o *OptErrno) Reset()

Reset unsets value.

func (*OptErrno) SetTo

func (o *OptErrno) SetTo(v Errno)

SetTo sets value to v.

func (*OptErrno) UnmarshalJSON

func (s *OptErrno) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEventContexts

type OptEventContexts struct {
	Value EventContexts
	Set   bool
}

OptEventContexts is optional EventContexts.

func NewOptEventContexts

func NewOptEventContexts(v EventContexts) OptEventContexts

NewOptEventContexts returns new OptEventContexts with value set to v.

func (*OptEventContexts) Decode

func (o *OptEventContexts) Decode(d *jx.Decoder) error

Decode decodes EventContexts from json.

func (OptEventContexts) Encode

func (o OptEventContexts) Encode(e *jx.Encoder)

Encode encodes EventContexts as json.

func (OptEventContexts) Get

func (o OptEventContexts) Get() (v EventContexts, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEventContexts) IsSet

func (o OptEventContexts) IsSet() bool

IsSet returns true if OptEventContexts was set.

func (OptEventContexts) MarshalJSON

func (s OptEventContexts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEventContexts) Or

Or returns value if set, or given parameter if does not.

func (*OptEventContexts) Reset

func (o *OptEventContexts) Reset()

Reset unsets value.

func (*OptEventContexts) SetTo

func (o *OptEventContexts) SetTo(v EventContexts)

SetTo sets value to v.

func (*OptEventContexts) UnmarshalJSON

func (s *OptEventContexts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEventExtra

type OptEventExtra struct {
	Value EventExtra
	Set   bool
}

OptEventExtra is optional EventExtra.

func NewOptEventExtra

func NewOptEventExtra(v EventExtra) OptEventExtra

NewOptEventExtra returns new OptEventExtra with value set to v.

func (*OptEventExtra) Decode

func (o *OptEventExtra) Decode(d *jx.Decoder) error

Decode decodes EventExtra from json.

func (OptEventExtra) Encode

func (o OptEventExtra) Encode(e *jx.Encoder)

Encode encodes EventExtra as json.

func (OptEventExtra) Get

func (o OptEventExtra) Get() (v EventExtra, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEventExtra) IsSet

func (o OptEventExtra) IsSet() bool

IsSet returns true if OptEventExtra was set.

func (OptEventExtra) MarshalJSON

func (s OptEventExtra) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEventExtra) Or

Or returns value if set, or given parameter if does not.

func (*OptEventExtra) Reset

func (o *OptEventExtra) Reset()

Reset unsets value.

func (*OptEventExtra) SetTo

func (o *OptEventExtra) SetTo(v EventExtra)

SetTo sets value to v.

func (*OptEventExtra) UnmarshalJSON

func (s *OptEventExtra) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEventModules

type OptEventModules struct {
	Value EventModules
	Set   bool
}

OptEventModules is optional EventModules.

func NewOptEventModules

func NewOptEventModules(v EventModules) OptEventModules

NewOptEventModules returns new OptEventModules with value set to v.

func (*OptEventModules) Decode

func (o *OptEventModules) Decode(d *jx.Decoder) error

Decode decodes EventModules from json.

func (OptEventModules) Encode

func (o OptEventModules) Encode(e *jx.Encoder)

Encode encodes EventModules as json.

func (OptEventModules) Get

func (o OptEventModules) Get() (v EventModules, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEventModules) IsSet

func (o OptEventModules) IsSet() bool

IsSet returns true if OptEventModules was set.

func (OptEventModules) MarshalJSON

func (s OptEventModules) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEventModules) Or

Or returns value if set, or given parameter if does not.

func (*OptEventModules) Reset

func (o *OptEventModules) Reset()

Reset unsets value.

func (*OptEventModules) SetTo

func (o *OptEventModules) SetTo(v EventModules)

SetTo sets value to v.

func (*OptEventModules) UnmarshalJSON

func (s *OptEventModules) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEventTags

type OptEventTags struct {
	Value EventTags
	Set   bool
}

OptEventTags is optional EventTags.

func NewOptEventTags

func NewOptEventTags(v EventTags) OptEventTags

NewOptEventTags returns new OptEventTags with value set to v.

func (*OptEventTags) Decode

func (o *OptEventTags) Decode(d *jx.Decoder) error

Decode decodes EventTags from json.

func (OptEventTags) Encode

func (o OptEventTags) Encode(e *jx.Encoder)

Encode encodes EventTags as json.

func (OptEventTags) Get

func (o OptEventTags) Get() (v EventTags, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEventTags) IsSet

func (o OptEventTags) IsSet() bool

IsSet returns true if OptEventTags was set.

func (OptEventTags) MarshalJSON

func (s OptEventTags) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEventTags) Or

Or returns value if set, or given parameter if does not.

func (*OptEventTags) Reset

func (o *OptEventTags) Reset()

Reset unsets value.

func (*OptEventTags) SetTo

func (o *OptEventTags) SetTo(v EventTags)

SetTo sets value to v.

func (*OptEventTags) UnmarshalJSON

func (s *OptEventTags) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFrameVars

type OptFrameVars struct {
	Value FrameVars
	Set   bool
}

OptFrameVars is optional FrameVars.

func NewOptFrameVars

func NewOptFrameVars(v FrameVars) OptFrameVars

NewOptFrameVars returns new OptFrameVars with value set to v.

func (*OptFrameVars) Decode

func (o *OptFrameVars) Decode(d *jx.Decoder) error

Decode decodes FrameVars from json.

func (OptFrameVars) Encode

func (o OptFrameVars) Encode(e *jx.Encoder)

Encode encodes FrameVars as json.

func (OptFrameVars) Get

func (o OptFrameVars) Get() (v FrameVars, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFrameVars) IsSet

func (o OptFrameVars) IsSet() bool

IsSet returns true if OptFrameVars was set.

func (OptFrameVars) MarshalJSON

func (s OptFrameVars) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFrameVars) Or

Or returns value if set, or given parameter if does not.

func (*OptFrameVars) Reset

func (o *OptFrameVars) Reset()

Reset unsets value.

func (*OptFrameVars) SetTo

func (o *OptFrameVars) SetTo(v FrameVars)

SetTo sets value to v.

func (*OptFrameVars) UnmarshalJSON

func (s *OptFrameVars) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLevel

type OptLevel struct {
	Value Level
	Set   bool
}

OptLevel is optional Level.

func NewOptLevel

func NewOptLevel(v Level) OptLevel

NewOptLevel returns new OptLevel with value set to v.

func (*OptLevel) Decode

func (o *OptLevel) Decode(d *jx.Decoder) error

Decode decodes Level from json.

func (OptLevel) Encode

func (o OptLevel) Encode(e *jx.Encoder)

Encode encodes Level as json.

func (OptLevel) Get

func (o OptLevel) Get() (v Level, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLevel) IsSet

func (o OptLevel) IsSet() bool

IsSet returns true if OptLevel was set.

func (OptLevel) MarshalJSON

func (s OptLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLevel) Or

func (o OptLevel) Or(d Level) Level

Or returns value if set, or given parameter if does not.

func (*OptLevel) Reset

func (o *OptLevel) Reset()

Reset unsets value.

func (*OptLevel) SetTo

func (o *OptLevel) SetTo(v Level)

SetTo sets value to v.

func (*OptLevel) UnmarshalJSON

func (s *OptLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMachException

type OptMachException struct {
	Value MachException
	Set   bool
}

OptMachException is optional MachException.

func NewOptMachException

func NewOptMachException(v MachException) OptMachException

NewOptMachException returns new OptMachException with value set to v.

func (*OptMachException) Decode

func (o *OptMachException) Decode(d *jx.Decoder) error

Decode decodes MachException from json.

func (OptMachException) Encode

func (o OptMachException) Encode(e *jx.Encoder)

Encode encodes MachException as json.

func (OptMachException) Get

func (o OptMachException) Get() (v MachException, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMachException) IsSet

func (o OptMachException) IsSet() bool

IsSet returns true if OptMachException was set.

func (OptMachException) MarshalJSON

func (s OptMachException) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMachException) Or

Or returns value if set, or given parameter if does not.

func (*OptMachException) Reset

func (o *OptMachException) Reset()

Reset unsets value.

func (*OptMachException) SetTo

func (o *OptMachException) SetTo(v MachException)

SetTo sets value to v.

func (*OptMachException) UnmarshalJSON

func (s *OptMachException) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMechanism

type OptMechanism struct {
	Value Mechanism
	Set   bool
}

OptMechanism is optional Mechanism.

func NewOptMechanism

func NewOptMechanism(v Mechanism) OptMechanism

NewOptMechanism returns new OptMechanism with value set to v.

func (*OptMechanism) Decode

func (o *OptMechanism) Decode(d *jx.Decoder) error

Decode decodes Mechanism from json.

func (OptMechanism) Encode

func (o OptMechanism) Encode(e *jx.Encoder)

Encode encodes Mechanism as json.

func (OptMechanism) Get

func (o OptMechanism) Get() (v Mechanism, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMechanism) IsSet

func (o OptMechanism) IsSet() bool

IsSet returns true if OptMechanism was set.

func (OptMechanism) MarshalJSON

func (s OptMechanism) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMechanism) Or

Or returns value if set, or given parameter if does not.

func (*OptMechanism) Reset

func (o *OptMechanism) Reset()

Reset unsets value.

func (*OptMechanism) SetTo

func (o *OptMechanism) SetTo(v Mechanism)

SetTo sets value to v.

func (*OptMechanism) UnmarshalJSON

func (s *OptMechanism) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMechanismData

type OptMechanismData struct {
	Value MechanismData
	Set   bool
}

OptMechanismData is optional MechanismData.

func NewOptMechanismData

func NewOptMechanismData(v MechanismData) OptMechanismData

NewOptMechanismData returns new OptMechanismData with value set to v.

func (*OptMechanismData) Decode

func (o *OptMechanismData) Decode(d *jx.Decoder) error

Decode decodes MechanismData from json.

func (OptMechanismData) Encode

func (o OptMechanismData) Encode(e *jx.Encoder)

Encode encodes MechanismData as json.

func (OptMechanismData) Get

func (o OptMechanismData) Get() (v MechanismData, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMechanismData) IsSet

func (o OptMechanismData) IsSet() bool

IsSet returns true if OptMechanismData was set.

func (OptMechanismData) MarshalJSON

func (s OptMechanismData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMechanismData) Or

Or returns value if set, or given parameter if does not.

func (*OptMechanismData) Reset

func (o *OptMechanismData) Reset()

Reset unsets value.

func (*OptMechanismData) SetTo

func (o *OptMechanismData) SetTo(v MechanismData)

SetTo sets value to v.

func (*OptMechanismData) UnmarshalJSON

func (s *OptMechanismData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMechanismMeta

type OptMechanismMeta struct {
	Value MechanismMeta
	Set   bool
}

OptMechanismMeta is optional MechanismMeta.

func NewOptMechanismMeta

func NewOptMechanismMeta(v MechanismMeta) OptMechanismMeta

NewOptMechanismMeta returns new OptMechanismMeta with value set to v.

func (*OptMechanismMeta) Decode

func (o *OptMechanismMeta) Decode(d *jx.Decoder) error

Decode decodes MechanismMeta from json.

func (OptMechanismMeta) Encode

func (o OptMechanismMeta) Encode(e *jx.Encoder)

Encode encodes MechanismMeta as json.

func (OptMechanismMeta) Get

func (o OptMechanismMeta) Get() (v MechanismMeta, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMechanismMeta) IsSet

func (o OptMechanismMeta) IsSet() bool

IsSet returns true if OptMechanismMeta was set.

func (OptMechanismMeta) MarshalJSON

func (s OptMechanismMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMechanismMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptMechanismMeta) Reset

func (o *OptMechanismMeta) Reset()

Reset unsets value.

func (*OptMechanismMeta) SetTo

func (o *OptMechanismMeta) SetTo(v MechanismMeta)

SetTo sets value to v.

func (*OptMechanismMeta) UnmarshalJSON

func (s *OptMechanismMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNSError

type OptNSError struct {
	Value NSError
	Set   bool
}

OptNSError is optional NSError.

func NewOptNSError

func NewOptNSError(v NSError) OptNSError

NewOptNSError returns new OptNSError with value set to v.

func (*OptNSError) Decode

func (o *OptNSError) Decode(d *jx.Decoder) error

Decode decodes NSError from json.

func (OptNSError) Encode

func (o OptNSError) Encode(e *jx.Encoder)

Encode encodes NSError as json.

func (OptNSError) Get

func (o OptNSError) Get() (v NSError, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNSError) IsSet

func (o OptNSError) IsSet() bool

IsSet returns true if OptNSError was set.

func (OptNSError) MarshalJSON

func (s OptNSError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNSError) Or

func (o OptNSError) Or(d NSError) NSError

Or returns value if set, or given parameter if does not.

func (*OptNSError) Reset

func (o *OptNSError) Reset()

Reset unsets value.

func (*OptNSError) SetTo

func (o *OptNSError) SetTo(v NSError)

SetTo sets value to v.

func (*OptNSError) UnmarshalJSON

func (s *OptNSError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRequest

type OptRequest struct {
	Value Request
	Set   bool
}

OptRequest is optional Request.

func NewOptRequest

func NewOptRequest(v Request) OptRequest

NewOptRequest returns new OptRequest with value set to v.

func (*OptRequest) Decode

func (o *OptRequest) Decode(d *jx.Decoder) error

Decode decodes Request from json.

func (OptRequest) Encode

func (o OptRequest) Encode(e *jx.Encoder)

Encode encodes Request as json.

func (OptRequest) Get

func (o OptRequest) Get() (v Request, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRequest) IsSet

func (o OptRequest) IsSet() bool

IsSet returns true if OptRequest was set.

func (OptRequest) MarshalJSON

func (s OptRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRequest) Or

func (o OptRequest) Or(d Request) Request

Or returns value if set, or given parameter if does not.

func (*OptRequest) Reset

func (o *OptRequest) Reset()

Reset unsets value.

func (*OptRequest) SetTo

func (o *OptRequest) SetTo(v Request)

SetTo sets value to v.

func (*OptRequest) UnmarshalJSON

func (s *OptRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRequestEnv

type OptRequestEnv struct {
	Value RequestEnv
	Set   bool
}

OptRequestEnv is optional RequestEnv.

func NewOptRequestEnv

func NewOptRequestEnv(v RequestEnv) OptRequestEnv

NewOptRequestEnv returns new OptRequestEnv with value set to v.

func (*OptRequestEnv) Decode

func (o *OptRequestEnv) Decode(d *jx.Decoder) error

Decode decodes RequestEnv from json.

func (OptRequestEnv) Encode

func (o OptRequestEnv) Encode(e *jx.Encoder)

Encode encodes RequestEnv as json.

func (OptRequestEnv) Get

func (o OptRequestEnv) Get() (v RequestEnv, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRequestEnv) IsSet

func (o OptRequestEnv) IsSet() bool

IsSet returns true if OptRequestEnv was set.

func (OptRequestEnv) MarshalJSON

func (s OptRequestEnv) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRequestEnv) Or

Or returns value if set, or given parameter if does not.

func (*OptRequestEnv) Reset

func (o *OptRequestEnv) Reset()

Reset unsets value.

func (*OptRequestEnv) SetTo

func (o *OptRequestEnv) SetTo(v RequestEnv)

SetTo sets value to v.

func (*OptRequestEnv) UnmarshalJSON

func (s *OptRequestEnv) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRequestHeaders

type OptRequestHeaders struct {
	Value RequestHeaders
	Set   bool
}

OptRequestHeaders is optional RequestHeaders.

func NewOptRequestHeaders

func NewOptRequestHeaders(v RequestHeaders) OptRequestHeaders

NewOptRequestHeaders returns new OptRequestHeaders with value set to v.

func (*OptRequestHeaders) Decode

func (o *OptRequestHeaders) Decode(d *jx.Decoder) error

Decode decodes RequestHeaders from json.

func (OptRequestHeaders) Encode

func (o OptRequestHeaders) Encode(e *jx.Encoder)

Encode encodes RequestHeaders as json.

func (OptRequestHeaders) Get

func (o OptRequestHeaders) Get() (v RequestHeaders, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRequestHeaders) IsSet

func (o OptRequestHeaders) IsSet() bool

IsSet returns true if OptRequestHeaders was set.

func (OptRequestHeaders) MarshalJSON

func (s OptRequestHeaders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRequestHeaders) Or

Or returns value if set, or given parameter if does not.

func (*OptRequestHeaders) Reset

func (o *OptRequestHeaders) Reset()

Reset unsets value.

func (*OptRequestHeaders) SetTo

func (o *OptRequestHeaders) SetTo(v RequestHeaders)

SetTo sets value to v.

func (*OptRequestHeaders) UnmarshalJSON

func (s *OptRequestHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSdkInfo

type OptSdkInfo struct {
	Value SdkInfo
	Set   bool
}

OptSdkInfo is optional SdkInfo.

func NewOptSdkInfo

func NewOptSdkInfo(v SdkInfo) OptSdkInfo

NewOptSdkInfo returns new OptSdkInfo with value set to v.

func (*OptSdkInfo) Decode

func (o *OptSdkInfo) Decode(d *jx.Decoder) error

Decode decodes SdkInfo from json.

func (OptSdkInfo) Encode

func (o OptSdkInfo) Encode(e *jx.Encoder)

Encode encodes SdkInfo as json.

func (OptSdkInfo) Get

func (o OptSdkInfo) Get() (v SdkInfo, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSdkInfo) IsSet

func (o OptSdkInfo) IsSet() bool

IsSet returns true if OptSdkInfo was set.

func (OptSdkInfo) MarshalJSON

func (s OptSdkInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSdkInfo) Or

func (o OptSdkInfo) Or(d SdkInfo) SdkInfo

Or returns value if set, or given parameter if does not.

func (*OptSdkInfo) Reset

func (o *OptSdkInfo) Reset()

Reset unsets value.

func (*OptSdkInfo) SetTo

func (o *OptSdkInfo) SetTo(v SdkInfo)

SetTo sets value to v.

func (*OptSdkInfo) UnmarshalJSON

func (s *OptSdkInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSignal

type OptSignal struct {
	Value Signal
	Set   bool
}

OptSignal is optional Signal.

func NewOptSignal

func NewOptSignal(v Signal) OptSignal

NewOptSignal returns new OptSignal with value set to v.

func (*OptSignal) Decode

func (o *OptSignal) Decode(d *jx.Decoder) error

Decode decodes Signal from json.

func (OptSignal) Encode

func (o OptSignal) Encode(e *jx.Encoder)

Encode encodes Signal as json.

func (OptSignal) Get

func (o OptSignal) Get() (v Signal, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSignal) IsSet

func (o OptSignal) IsSet() bool

IsSet returns true if OptSignal was set.

func (OptSignal) MarshalJSON

func (s OptSignal) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSignal) Or

func (o OptSignal) Or(d Signal) Signal

Or returns value if set, or given parameter if does not.

func (*OptSignal) Reset

func (o *OptSignal) Reset()

Reset unsets value.

func (*OptSignal) SetTo

func (o *OptSignal) SetTo(v Signal)

SetTo sets value to v.

func (*OptSignal) UnmarshalJSON

func (s *OptSignal) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpanData

type OptSpanData struct {
	Value SpanData
	Set   bool
}

OptSpanData is optional SpanData.

func NewOptSpanData

func NewOptSpanData(v SpanData) OptSpanData

NewOptSpanData returns new OptSpanData with value set to v.

func (*OptSpanData) Decode

func (o *OptSpanData) Decode(d *jx.Decoder) error

Decode decodes SpanData from json.

func (OptSpanData) Encode

func (o OptSpanData) Encode(e *jx.Encoder)

Encode encodes SpanData as json.

func (OptSpanData) Get

func (o OptSpanData) Get() (v SpanData, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSpanData) IsSet

func (o OptSpanData) IsSet() bool

IsSet returns true if OptSpanData was set.

func (OptSpanData) MarshalJSON

func (s OptSpanData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpanData) Or

func (o OptSpanData) Or(d SpanData) SpanData

Or returns value if set, or given parameter if does not.

func (*OptSpanData) Reset

func (o *OptSpanData) Reset()

Reset unsets value.

func (*OptSpanData) SetTo

func (o *OptSpanData) SetTo(v SpanData)

SetTo sets value to v.

func (*OptSpanData) UnmarshalJSON

func (s *OptSpanData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpanID

type OptSpanID struct {
	Value SpanID
	Set   bool
}

OptSpanID is optional SpanID.

func NewOptSpanID

func NewOptSpanID(v SpanID) OptSpanID

NewOptSpanID returns new OptSpanID with value set to v.

func (*OptSpanID) Decode

func (o *OptSpanID) Decode(d *jx.Decoder) error

Decode decodes SpanID from json.

func (OptSpanID) Encode

func (o OptSpanID) Encode(e *jx.Encoder)

Encode encodes SpanID as json.

func (OptSpanID) Get

func (o OptSpanID) Get() (v SpanID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSpanID) IsSet

func (o OptSpanID) IsSet() bool

IsSet returns true if OptSpanID was set.

func (OptSpanID) MarshalJSON

func (s OptSpanID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpanID) Or

func (o OptSpanID) Or(d SpanID) SpanID

Or returns value if set, or given parameter if does not.

func (*OptSpanID) Reset

func (o *OptSpanID) Reset()

Reset unsets value.

func (*OptSpanID) SetTo

func (o *OptSpanID) SetTo(v SpanID)

SetTo sets value to v.

func (*OptSpanID) UnmarshalJSON

func (s *OptSpanID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpanTags

type OptSpanTags struct {
	Value SpanTags
	Set   bool
}

OptSpanTags is optional SpanTags.

func NewOptSpanTags

func NewOptSpanTags(v SpanTags) OptSpanTags

NewOptSpanTags returns new OptSpanTags with value set to v.

func (*OptSpanTags) Decode

func (o *OptSpanTags) Decode(d *jx.Decoder) error

Decode decodes SpanTags from json.

func (OptSpanTags) Encode

func (o OptSpanTags) Encode(e *jx.Encoder)

Encode encodes SpanTags as json.

func (OptSpanTags) Get

func (o OptSpanTags) Get() (v SpanTags, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSpanTags) IsSet

func (o OptSpanTags) IsSet() bool

IsSet returns true if OptSpanTags was set.

func (OptSpanTags) MarshalJSON

func (s OptSpanTags) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpanTags) Or

func (o OptSpanTags) Or(d SpanTags) SpanTags

Or returns value if set, or given parameter if does not.

func (*OptSpanTags) Reset

func (o *OptSpanTags) Reset()

Reset unsets value.

func (*OptSpanTags) SetTo

func (o *OptSpanTags) SetTo(v SpanTags)

SetTo sets value to v.

func (*OptSpanTags) UnmarshalJSON

func (s *OptSpanTags) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStacktrace

type OptStacktrace struct {
	Value Stacktrace
	Set   bool
}

OptStacktrace is optional Stacktrace.

func NewOptStacktrace

func NewOptStacktrace(v Stacktrace) OptStacktrace

NewOptStacktrace returns new OptStacktrace with value set to v.

func (*OptStacktrace) Decode

func (o *OptStacktrace) Decode(d *jx.Decoder) error

Decode decodes Stacktrace from json.

func (OptStacktrace) Encode

func (o OptStacktrace) Encode(e *jx.Encoder)

Encode encodes Stacktrace as json.

func (OptStacktrace) Get

func (o OptStacktrace) Get() (v Stacktrace, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStacktrace) IsSet

func (o OptStacktrace) IsSet() bool

IsSet returns true if OptStacktrace was set.

func (OptStacktrace) MarshalJSON

func (s OptStacktrace) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStacktrace) Or

Or returns value if set, or given parameter if does not.

func (*OptStacktrace) Reset

func (o *OptStacktrace) Reset()

Reset unsets value.

func (*OptStacktrace) SetTo

func (o *OptStacktrace) SetTo(v Stacktrace)

SetTo sets value to v.

func (*OptStacktrace) UnmarshalJSON

func (s *OptStacktrace) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStacktraceRegisters

type OptStacktraceRegisters struct {
	Value StacktraceRegisters
	Set   bool
}

OptStacktraceRegisters is optional StacktraceRegisters.

func NewOptStacktraceRegisters

func NewOptStacktraceRegisters(v StacktraceRegisters) OptStacktraceRegisters

NewOptStacktraceRegisters returns new OptStacktraceRegisters with value set to v.

func (*OptStacktraceRegisters) Decode

func (o *OptStacktraceRegisters) Decode(d *jx.Decoder) error

Decode decodes StacktraceRegisters from json.

func (OptStacktraceRegisters) Encode

func (o OptStacktraceRegisters) Encode(e *jx.Encoder)

Encode encodes StacktraceRegisters as json.

func (OptStacktraceRegisters) Get

Get returns value and boolean that denotes whether value was set.

func (OptStacktraceRegisters) IsSet

func (o OptStacktraceRegisters) IsSet() bool

IsSet returns true if OptStacktraceRegisters was set.

func (OptStacktraceRegisters) MarshalJSON

func (s OptStacktraceRegisters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStacktraceRegisters) Or

Or returns value if set, or given parameter if does not.

func (*OptStacktraceRegisters) Reset

func (o *OptStacktraceRegisters) Reset()

Reset unsets value.

func (*OptStacktraceRegisters) SetTo

SetTo sets value to v.

func (*OptStacktraceRegisters) UnmarshalJSON

func (s *OptStacktraceRegisters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptThreadHeldLocks

type OptThreadHeldLocks struct {
	Value ThreadHeldLocks
	Set   bool
}

OptThreadHeldLocks is optional ThreadHeldLocks.

func NewOptThreadHeldLocks

func NewOptThreadHeldLocks(v ThreadHeldLocks) OptThreadHeldLocks

NewOptThreadHeldLocks returns new OptThreadHeldLocks with value set to v.

func (*OptThreadHeldLocks) Decode

func (o *OptThreadHeldLocks) Decode(d *jx.Decoder) error

Decode decodes ThreadHeldLocks from json.

func (OptThreadHeldLocks) Encode

func (o OptThreadHeldLocks) Encode(e *jx.Encoder)

Encode encodes ThreadHeldLocks as json.

func (OptThreadHeldLocks) Get

func (o OptThreadHeldLocks) Get() (v ThreadHeldLocks, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptThreadHeldLocks) IsSet

func (o OptThreadHeldLocks) IsSet() bool

IsSet returns true if OptThreadHeldLocks was set.

func (OptThreadHeldLocks) MarshalJSON

func (s OptThreadHeldLocks) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptThreadHeldLocks) Or

Or returns value if set, or given parameter if does not.

func (*OptThreadHeldLocks) Reset

func (o *OptThreadHeldLocks) Reset()

Reset unsets value.

func (*OptThreadHeldLocks) SetTo

func (o *OptThreadHeldLocks) SetTo(v ThreadHeldLocks)

SetTo sets value to v.

func (*OptThreadHeldLocks) UnmarshalJSON

func (s *OptThreadHeldLocks) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTimestamp

type OptTimestamp struct {
	Value Timestamp
	Set   bool
}

OptTimestamp is optional Timestamp.

func NewOptTimestamp

func NewOptTimestamp(v Timestamp) OptTimestamp

NewOptTimestamp returns new OptTimestamp with value set to v.

func (*OptTimestamp) Decode

func (o *OptTimestamp) Decode(d *jx.Decoder) error

Decode decodes Timestamp from json.

func (OptTimestamp) Encode

func (o OptTimestamp) Encode(e *jx.Encoder)

Encode encodes Timestamp as json.

func (OptTimestamp) Get

func (o OptTimestamp) Get() (v Timestamp, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTimestamp) IsSet

func (o OptTimestamp) IsSet() bool

IsSet returns true if OptTimestamp was set.

func (OptTimestamp) MarshalJSON

func (s OptTimestamp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTimestamp) Or

Or returns value if set, or given parameter if does not.

func (*OptTimestamp) Reset

func (o *OptTimestamp) Reset()

Reset unsets value.

func (*OptTimestamp) SetTo

func (o *OptTimestamp) SetTo(v Timestamp)

SetTo sets value to v.

func (*OptTimestamp) UnmarshalJSON

func (s *OptTimestamp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTransactionInfo

type OptTransactionInfo struct {
	Value TransactionInfo
	Set   bool
}

OptTransactionInfo is optional TransactionInfo.

func NewOptTransactionInfo

func NewOptTransactionInfo(v TransactionInfo) OptTransactionInfo

NewOptTransactionInfo returns new OptTransactionInfo with value set to v.

func (*OptTransactionInfo) Decode

func (o *OptTransactionInfo) Decode(d *jx.Decoder) error

Decode decodes TransactionInfo from json.

func (OptTransactionInfo) Encode

func (o OptTransactionInfo) Encode(e *jx.Encoder)

Encode encodes TransactionInfo as json.

func (OptTransactionInfo) Get

func (o OptTransactionInfo) Get() (v TransactionInfo, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTransactionInfo) IsSet

func (o OptTransactionInfo) IsSet() bool

IsSet returns true if OptTransactionInfo was set.

func (OptTransactionInfo) MarshalJSON

func (s OptTransactionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTransactionInfo) Or

Or returns value if set, or given parameter if does not.

func (*OptTransactionInfo) Reset

func (o *OptTransactionInfo) Reset()

Reset unsets value.

func (*OptTransactionInfo) SetTo

func (o *OptTransactionInfo) SetTo(v TransactionInfo)

SetTo sets value to v.

func (*OptTransactionInfo) UnmarshalJSON

func (s *OptTransactionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUser

type OptUser struct {
	Value User
	Set   bool
}

OptUser is optional User.

func NewOptUser

func NewOptUser(v User) OptUser

NewOptUser returns new OptUser with value set to v.

func (*OptUser) Decode

func (o *OptUser) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (OptUser) Encode

func (o OptUser) Encode(e *jx.Encoder)

Encode encodes User as json.

func (OptUser) Get

func (o OptUser) Get() (v User, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUser) IsSet

func (o OptUser) IsSet() bool

IsSet returns true if OptUser was set.

func (OptUser) MarshalJSON

func (s OptUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUser) Or

func (o OptUser) Or(d User) User

Or returns value if set, or given parameter if does not.

func (*OptUser) Reset

func (o *OptUser) Reset()

Reset unsets value.

func (*OptUser) SetTo

func (o *OptUser) SetTo(v User)

SetTo sets value to v.

func (*OptUser) UnmarshalJSON

func (s *OptUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type Request

type Request struct {
	URL         OptString         `json:"url"`
	Method      OptString         `json:"method"`
	Data        OptString         `json:"data"`
	QueryString OptString         `json:"query_string"`
	Cookies     OptString         `json:"cookies"`
	Headers     OptRequestHeaders `json:"headers"`
	Env         OptRequestEnv     `json:"env"`
}

Request contains information on a HTTP request related to the event. See [this](https://develop.sentry.dev/sdk/event-payloads/request/). Ref: #/components/schemas/Request

func (*Request) Decode

func (s *Request) Decode(d *jx.Decoder) error

Decode decodes Request from json.

func (*Request) Encode

func (s *Request) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Request) GetCookies

func (s *Request) GetCookies() OptString

GetCookies returns the value of Cookies.

func (*Request) GetData

func (s *Request) GetData() OptString

GetData returns the value of Data.

func (*Request) GetEnv

func (s *Request) GetEnv() OptRequestEnv

GetEnv returns the value of Env.

func (*Request) GetHeaders

func (s *Request) GetHeaders() OptRequestHeaders

GetHeaders returns the value of Headers.

func (*Request) GetMethod

func (s *Request) GetMethod() OptString

GetMethod returns the value of Method.

func (*Request) GetQueryString

func (s *Request) GetQueryString() OptString

GetQueryString returns the value of QueryString.

func (*Request) GetURL

func (s *Request) GetURL() OptString

GetURL returns the value of URL.

func (*Request) MarshalJSON

func (s *Request) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Request) SetCookies

func (s *Request) SetCookies(val OptString)

SetCookies sets the value of Cookies.

func (*Request) SetData

func (s *Request) SetData(val OptString)

SetData sets the value of Data.

func (*Request) SetEnv

func (s *Request) SetEnv(val OptRequestEnv)

SetEnv sets the value of Env.

func (*Request) SetHeaders

func (s *Request) SetHeaders(val OptRequestHeaders)

SetHeaders sets the value of Headers.

func (*Request) SetMethod

func (s *Request) SetMethod(val OptString)

SetMethod sets the value of Method.

func (*Request) SetQueryString

func (s *Request) SetQueryString(val OptString)

SetQueryString sets the value of QueryString.

func (*Request) SetURL

func (s *Request) SetURL(val OptString)

SetURL sets the value of URL.

func (*Request) UnmarshalJSON

func (s *Request) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RequestEnv

type RequestEnv map[string]string

func (*RequestEnv) Decode

func (s *RequestEnv) Decode(d *jx.Decoder) error

Decode decodes RequestEnv from json.

func (RequestEnv) Encode

func (s RequestEnv) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (RequestEnv) MarshalJSON

func (s RequestEnv) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RequestEnv) UnmarshalJSON

func (s *RequestEnv) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RequestHeaders

type RequestHeaders map[string]string

func (*RequestHeaders) Decode

func (s *RequestHeaders) Decode(d *jx.Decoder) error

Decode decodes RequestHeaders from json.

func (RequestHeaders) Encode

func (s RequestHeaders) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (RequestHeaders) MarshalJSON

func (s RequestHeaders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RequestHeaders) UnmarshalJSON

func (s *RequestHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary added in v0.1.0

func (r Route) Summary() string

Summary returns OpenAPI summary.

type SdkInfo

type SdkInfo struct {
	Name         OptString    `json:"name"`
	Version      string       `json:"version"`
	Integrations []string     `json:"integrations"`
	Packages     []SdkPackage `json:"packages"`
}

SdkInfo contains all metadata about about the SDK being used. See [this](https://develop.sentry.dev/sdk/event-payloads/sdk/). Ref: #/components/schemas/SdkInfo

func (*SdkInfo) Decode

func (s *SdkInfo) Decode(d *jx.Decoder) error

Decode decodes SdkInfo from json.

func (*SdkInfo) Encode

func (s *SdkInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SdkInfo) GetIntegrations

func (s *SdkInfo) GetIntegrations() []string

GetIntegrations returns the value of Integrations.

func (*SdkInfo) GetName

func (s *SdkInfo) GetName() OptString

GetName returns the value of Name.

func (*SdkInfo) GetPackages

func (s *SdkInfo) GetPackages() []SdkPackage

GetPackages returns the value of Packages.

func (*SdkInfo) GetVersion

func (s *SdkInfo) GetVersion() string

GetVersion returns the value of Version.

func (*SdkInfo) MarshalJSON

func (s *SdkInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SdkInfo) SetIntegrations

func (s *SdkInfo) SetIntegrations(val []string)

SetIntegrations sets the value of Integrations.

func (*SdkInfo) SetName

func (s *SdkInfo) SetName(val OptString)

SetName sets the value of Name.

func (*SdkInfo) SetPackages

func (s *SdkInfo) SetPackages(val []SdkPackage)

SetPackages sets the value of Packages.

func (*SdkInfo) SetVersion

func (s *SdkInfo) SetVersion(val string)

SetVersion sets the value of Version.

func (*SdkInfo) UnmarshalJSON

func (s *SdkInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SdkPackage

type SdkPackage struct {
	Name    OptString `json:"name"`
	Version OptString `json:"version"`
}

SdkPackage describes a package that was installed. Ref: #/components/schemas/SdkPackage

func (*SdkPackage) Decode

func (s *SdkPackage) Decode(d *jx.Decoder) error

Decode decodes SdkPackage from json.

func (*SdkPackage) Encode

func (s *SdkPackage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SdkPackage) GetName

func (s *SdkPackage) GetName() OptString

GetName returns the value of Name.

func (*SdkPackage) GetVersion

func (s *SdkPackage) GetVersion() OptString

GetVersion returns the value of Version.

func (*SdkPackage) MarshalJSON

func (s *SdkPackage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SdkPackage) SetName

func (s *SdkPackage) SetName(val OptString)

SetName sets the value of Name.

func (*SdkPackage) SetVersion

func (s *SdkPackage) SetVersion(val OptString)

SetVersion sets the value of Version.

func (*SdkPackage) UnmarshalJSON

func (s *SdkPackage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SentryURLServer

type SentryURLServer struct {
	ProjectID string `json:"projectID" yaml:"projectID"`
}

SentryURLServer is a server URL template.

func (SentryURLServer) Build

func (s SentryURLServer) Build() (string, error)

Build returns the computed server URL.

If variable is empty, it uses the default value. If spec defines an enum and given value is not in the enum, it returns an error.

Notice that given values will not be escaped and may cause invalid URL.

func (SentryURLServer) MustBuild

func (s SentryURLServer) MustBuild() string

MustBuild returns the computed server URL. It panics if any error occurs.

func (SentryURLServer) MustPath

func (s SentryURLServer) MustPath() string

MustPath returns the computed path. It panics if any error occurs.

func (SentryURLServer) Path

func (s SentryURLServer) Path() (string, error)

Path returns the computed path.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type Signal

type Signal struct {
	Number   int       `json:"number"`
	Code     OptInt    `json:"code"`
	Name     OptString `json:"name"`
	CodeName OptString `json:"code_name"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/exception/#signal). Ref: #/components/schemas/Signal

func (*Signal) Decode

func (s *Signal) Decode(d *jx.Decoder) error

Decode decodes Signal from json.

func (*Signal) Encode

func (s *Signal) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Signal) GetCode

func (s *Signal) GetCode() OptInt

GetCode returns the value of Code.

func (*Signal) GetCodeName

func (s *Signal) GetCodeName() OptString

GetCodeName returns the value of CodeName.

func (*Signal) GetName

func (s *Signal) GetName() OptString

GetName returns the value of Name.

func (*Signal) GetNumber

func (s *Signal) GetNumber() int

GetNumber returns the value of Number.

func (*Signal) MarshalJSON

func (s *Signal) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Signal) SetCode

func (s *Signal) SetCode(val OptInt)

SetCode sets the value of Code.

func (*Signal) SetCodeName

func (s *Signal) SetCodeName(val OptString)

SetCodeName sets the value of CodeName.

func (*Signal) SetName

func (s *Signal) SetName(val OptString)

SetName sets the value of Name.

func (*Signal) SetNumber

func (s *Signal) SetNumber(val int)

SetNumber sets the value of Number.

func (*Signal) UnmarshalJSON

func (s *Signal) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Span

type Span struct {
	TraceID        TraceID     `json:"trace_id"`
	SpanID         SpanID      `json:"span_id"`
	ParentSpanID   OptSpanID   `json:"parent_span_id"`
	Name           OptString   `json:"name"`
	Op             OptString   `json:"op"`
	Description    OptString   `json:"description"`
	Status         OptString   `json:"status"`
	Tags           OptSpanTags `json:"tags"`
	StartTimestamp Timestamp   `json:"start_timestamp"`
	Timestamp      Timestamp   `json:"timestamp"`
	Data           OptSpanData `json:"data"`
}

See [this](https://develop.sentry.dev/sdk/event-payloads/span). Ref: #/components/schemas/Span

func (*Span) Decode

func (s *Span) Decode(d *jx.Decoder) error

Decode decodes Span from json.

func (*Span) Encode

func (s *Span) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Span) GetData

func (s *Span) GetData() OptSpanData

GetData returns the value of Data.

func (*Span) GetDescription

func (s *Span) GetDescription() OptString

GetDescription returns the value of Description.

func (*Span) GetName

func (s *Span) GetName() OptString

GetName returns the value of Name.

func (*Span) GetOp

func (s *Span) GetOp() OptString

GetOp returns the value of Op.

func (*Span) GetParentSpanID

func (s *Span) GetParentSpanID() OptSpanID

GetParentSpanID returns the value of ParentSpanID.

func (*Span) GetSpanID

func (s *Span) GetSpanID() SpanID

GetSpanID returns the value of SpanID.

func (*Span) GetStartTimestamp

func (s *Span) GetStartTimestamp() Timestamp

GetStartTimestamp returns the value of StartTimestamp.

func (*Span) GetStatus

func (s *Span) GetStatus() OptString

GetStatus returns the value of Status.

func (*Span) GetTags

func (s *Span) GetTags() OptSpanTags

GetTags returns the value of Tags.

func (*Span) GetTimestamp

func (s *Span) GetTimestamp() Timestamp

GetTimestamp returns the value of Timestamp.

func (*Span) GetTraceID

func (s *Span) GetTraceID() TraceID

GetTraceID returns the value of TraceID.

func (*Span) MarshalJSON

func (s *Span) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Span) SetData

func (s *Span) SetData(val OptSpanData)

SetData sets the value of Data.

func (*Span) SetDescription

func (s *Span) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Span) SetName

func (s *Span) SetName(val OptString)

SetName sets the value of Name.

func (*Span) SetOp

func (s *Span) SetOp(val OptString)

SetOp sets the value of Op.

func (*Span) SetParentSpanID

func (s *Span) SetParentSpanID(val OptSpanID)

SetParentSpanID sets the value of ParentSpanID.

func (*Span) SetSpanID

func (s *Span) SetSpanID(val SpanID)

SetSpanID sets the value of SpanID.

func (*Span) SetStartTimestamp

func (s *Span) SetStartTimestamp(val Timestamp)

SetStartTimestamp sets the value of StartTimestamp.

func (*Span) SetStatus

func (s *Span) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*Span) SetTags

func (s *Span) SetTags(val OptSpanTags)

SetTags sets the value of Tags.

func (*Span) SetTimestamp

func (s *Span) SetTimestamp(val Timestamp)

SetTimestamp sets the value of Timestamp.

func (*Span) SetTraceID

func (s *Span) SetTraceID(val TraceID)

SetTraceID sets the value of TraceID.

func (*Span) UnmarshalJSON

func (s *Span) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Span) Validate

func (s *Span) Validate() error

type SpanData

type SpanData map[string]jx.Raw

func (*SpanData) Decode

func (s *SpanData) Decode(d *jx.Decoder) error

Decode decodes SpanData from json.

func (SpanData) Encode

func (s SpanData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SpanData) MarshalJSON

func (s SpanData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanData) UnmarshalJSON

func (s *SpanData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpanID

type SpanID string

func (*SpanID) Decode

func (s *SpanID) Decode(d *jx.Decoder) error

Decode decodes SpanID from json.

func (SpanID) Encode

func (s SpanID) Encode(e *jx.Encoder)

Encode encodes SpanID as json.

func (SpanID) MarshalJSON

func (s SpanID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanID) UnmarshalJSON

func (s *SpanID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (SpanID) Validate

func (s SpanID) Validate() error

type SpanTags

type SpanTags map[string]string

func (*SpanTags) Decode

func (s *SpanTags) Decode(d *jx.Decoder) error

Decode decodes SpanTags from json.

func (SpanTags) Encode

func (s SpanTags) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SpanTags) MarshalJSON

func (s SpanTags) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpanTags) UnmarshalJSON

func (s *SpanTags) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Stacktrace

type Stacktrace struct {
	Frames    []Frame                `json:"frames"`
	Registers OptStacktraceRegisters `json:"registers"`
}

Ref: #/components/schemas/Stacktrace

func (*Stacktrace) Decode

func (s *Stacktrace) Decode(d *jx.Decoder) error

Decode decodes Stacktrace from json.

func (*Stacktrace) Encode

func (s *Stacktrace) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Stacktrace) GetFrames

func (s *Stacktrace) GetFrames() []Frame

GetFrames returns the value of Frames.

func (*Stacktrace) GetRegisters

func (s *Stacktrace) GetRegisters() OptStacktraceRegisters

GetRegisters returns the value of Registers.

func (*Stacktrace) MarshalJSON

func (s *Stacktrace) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Stacktrace) SetFrames

func (s *Stacktrace) SetFrames(val []Frame)

SetFrames sets the value of Frames.

func (*Stacktrace) SetRegisters

func (s *Stacktrace) SetRegisters(val OptStacktraceRegisters)

SetRegisters sets the value of Registers.

func (*Stacktrace) UnmarshalJSON

func (s *Stacktrace) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StacktraceRegisters

type StacktraceRegisters map[string]string

func (*StacktraceRegisters) Decode

func (s *StacktraceRegisters) Decode(d *jx.Decoder) error

Decode decodes StacktraceRegisters from json.

func (StacktraceRegisters) Encode

func (s StacktraceRegisters) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (StacktraceRegisters) MarshalJSON

func (s StacktraceRegisters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StacktraceRegisters) UnmarshalJSON

func (s *StacktraceRegisters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Thread

type Thread struct {
	ID        string             `json:"id"`
	Crashed   OptBool            `json:"crashed"`
	Current   OptBool            `json:"current"`
	Main      OptBool            `json:"main"`
	Name      OptString          `json:"name"`
	State     OptString          `json:"state"`
	HeldLocks OptThreadHeldLocks `json:"held_locks"`
}

Thread specifies threads that were running at the time of an event. See [this](https://develop.sentry.dev/sdk/event-payloads/threads/). Ref: #/components/schemas/Thread

func (*Thread) Decode

func (s *Thread) Decode(d *jx.Decoder) error

Decode decodes Thread from json.

func (*Thread) Encode

func (s *Thread) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Thread) GetCrashed

func (s *Thread) GetCrashed() OptBool

GetCrashed returns the value of Crashed.

func (*Thread) GetCurrent

func (s *Thread) GetCurrent() OptBool

GetCurrent returns the value of Current.

func (*Thread) GetHeldLocks

func (s *Thread) GetHeldLocks() OptThreadHeldLocks

GetHeldLocks returns the value of HeldLocks.

func (*Thread) GetID

func (s *Thread) GetID() string

GetID returns the value of ID.

func (*Thread) GetMain

func (s *Thread) GetMain() OptBool

GetMain returns the value of Main.

func (*Thread) GetName

func (s *Thread) GetName() OptString

GetName returns the value of Name.

func (*Thread) GetState

func (s *Thread) GetState() OptString

GetState returns the value of State.

func (*Thread) MarshalJSON

func (s *Thread) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Thread) SetCrashed

func (s *Thread) SetCrashed(val OptBool)

SetCrashed sets the value of Crashed.

func (*Thread) SetCurrent

func (s *Thread) SetCurrent(val OptBool)

SetCurrent sets the value of Current.

func (*Thread) SetHeldLocks

func (s *Thread) SetHeldLocks(val OptThreadHeldLocks)

SetHeldLocks sets the value of HeldLocks.

func (*Thread) SetID

func (s *Thread) SetID(val string)

SetID sets the value of ID.

func (*Thread) SetMain

func (s *Thread) SetMain(val OptBool)

SetMain sets the value of Main.

func (*Thread) SetName

func (s *Thread) SetName(val OptString)

SetName sets the value of Name.

func (*Thread) SetState

func (s *Thread) SetState(val OptString)

SetState sets the value of State.

func (*Thread) UnmarshalJSON

func (s *Thread) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ThreadHeldLocks

type ThreadHeldLocks map[string]jx.Raw

func (*ThreadHeldLocks) Decode

func (s *ThreadHeldLocks) Decode(d *jx.Decoder) error

Decode decodes ThreadHeldLocks from json.

func (ThreadHeldLocks) Encode

func (s ThreadHeldLocks) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ThreadHeldLocks) MarshalJSON

func (s ThreadHeldLocks) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ThreadHeldLocks) UnmarshalJSON

func (s *ThreadHeldLocks) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Timestamp

type Timestamp time.Time

func (*Timestamp) Decode

func (s *Timestamp) Decode(d *jx.Decoder) error

Decode decodes Timestamp from json.

func (Timestamp) Encode

func (s Timestamp) Encode(e *jx.Encoder)

Encode encodes Timestamp as json.

func (Timestamp) MarshalJSON

func (s Timestamp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Timestamp) UnmarshalJSON

func (s *Timestamp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TraceID

type TraceID string

func (*TraceID) Decode

func (s *TraceID) Decode(d *jx.Decoder) error

Decode decodes TraceID from json.

func (TraceID) Encode

func (s TraceID) Encode(e *jx.Encoder)

Encode encodes TraceID as json.

func (TraceID) MarshalJSON

func (s TraceID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceID) UnmarshalJSON

func (s *TraceID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (TraceID) Validate

func (s TraceID) Validate() error

type TransactionInfo

type TransactionInfo struct {
	Source TransactionSource `json:"source"`
}

Ref: #/components/schemas/TransactionInfo

func (*TransactionInfo) Decode

func (s *TransactionInfo) Decode(d *jx.Decoder) error

Decode decodes TransactionInfo from json.

func (*TransactionInfo) Encode

func (s *TransactionInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TransactionInfo) GetSource

func (s *TransactionInfo) GetSource() TransactionSource

GetSource returns the value of Source.

func (*TransactionInfo) MarshalJSON

func (s *TransactionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TransactionInfo) SetSource

func (s *TransactionInfo) SetSource(val TransactionSource)

SetSource sets the value of Source.

func (*TransactionInfo) UnmarshalJSON

func (s *TransactionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TransactionSource

type TransactionSource string

func (*TransactionSource) Decode

func (s *TransactionSource) Decode(d *jx.Decoder) error

Decode decodes TransactionSource from json.

func (TransactionSource) Encode

func (s TransactionSource) Encode(e *jx.Encoder)

Encode encodes TransactionSource as json.

func (TransactionSource) MarshalJSON

func (s TransactionSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TransactionSource) UnmarshalJSON

func (s *TransactionSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) Dummy

func (UnimplementedHandler) Dummy(ctx context.Context) (r *Event, _ error)

Dummy implements dummy operation.

Dummy endpoint to generate schema definitions.

GET /dummy

func (UnimplementedHandler) Envelope

Envelope implements envelope operation.

Sentry push.

POST /envelope

func (UnimplementedHandler) NewError

func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)

NewError creates *ErrorStatusCode from error returned by handler.

Used for common default response.

type User

type User struct {
	ID              OptString `json:"id"`
	Email           OptString `json:"email"`
	IPAddress       OptString `json:"ip_address"`
	Username        OptString `json:"username"`
	Name            OptString `json:"name"`
	Segment         OptString `json:"segment"`
	AdditionalProps UserAdditional
}

User describes the user associated with an Event. If this is used, at least an ID or an IP address should be provided. See [this](https://develop.sentry.dev/sdk/event-payloads/user/). Ref: #/components/schemas/User

func (*User) Decode

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetAdditionalProps

func (s *User) GetAdditionalProps() UserAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*User) GetEmail

func (s *User) GetEmail() OptString

GetEmail returns the value of Email.

func (*User) GetID

func (s *User) GetID() OptString

GetID returns the value of ID.

func (*User) GetIPAddress

func (s *User) GetIPAddress() OptString

GetIPAddress returns the value of IPAddress.

func (*User) GetName

func (s *User) GetName() OptString

GetName returns the value of Name.

func (*User) GetSegment

func (s *User) GetSegment() OptString

GetSegment returns the value of Segment.

func (*User) GetUsername

func (s *User) GetUsername() OptString

GetUsername returns the value of Username.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetAdditionalProps

func (s *User) SetAdditionalProps(val UserAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*User) SetEmail

func (s *User) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*User) SetID

func (s *User) SetID(val OptString)

SetID sets the value of ID.

func (*User) SetIPAddress

func (s *User) SetIPAddress(val OptString)

SetIPAddress sets the value of IPAddress.

func (*User) SetName

func (s *User) SetName(val OptString)

SetName sets the value of Name.

func (*User) SetSegment

func (s *User) SetSegment(val OptString)

SetSegment sets the value of Segment.

func (*User) SetUsername

func (s *User) SetUsername(val OptString)

SetUsername sets the value of Username.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserAdditional

type UserAdditional map[string]jx.Raw

func (*UserAdditional) Decode

func (s *UserAdditional) Decode(d *jx.Decoder) error

Decode decodes UserAdditional from json.

func (UserAdditional) Encode

func (s UserAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UserAdditional) MarshalJSON

func (s UserAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserAdditional) UnmarshalJSON

func (s *UserAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

Jump to

Keyboard shortcuts

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