Documentation ¶
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Breadcrumb
- func (s *Breadcrumb) Decode(d *jx.Decoder) error
- func (s *Breadcrumb) Encode(e *jx.Encoder)
- func (s *Breadcrumb) GetCategory() OptString
- func (s *Breadcrumb) GetData() OptBreadcrumbData
- func (s *Breadcrumb) GetLevel() OptLevel
- func (s *Breadcrumb) GetMessage() OptString
- func (s *Breadcrumb) GetTimestamp() OptTimestamp
- func (s *Breadcrumb) GetType() OptString
- func (s *Breadcrumb) MarshalJSON() ([]byte, error)
- func (s *Breadcrumb) SetCategory(val OptString)
- func (s *Breadcrumb) SetData(val OptBreadcrumbData)
- func (s *Breadcrumb) SetLevel(val OptLevel)
- func (s *Breadcrumb) SetMessage(val OptString)
- func (s *Breadcrumb) SetTimestamp(val OptTimestamp)
- func (s *Breadcrumb) SetType(val OptString)
- func (s *Breadcrumb) UnmarshalJSON(data []byte) error
- type BreadcrumbData
- type Client
- type ClientOption
- type Context
- type DebugImage
- func (s *DebugImage) Decode(d *jx.Decoder) error
- func (s *DebugImage) Encode(e *jx.Encoder)
- func (s *DebugImage) GetArch() OptString
- func (s *DebugImage) GetCodeFile() OptString
- func (s *DebugImage) GetCodeID() OptString
- func (s *DebugImage) GetDebugFile() OptString
- func (s *DebugImage) GetDebugID() OptString
- func (s *DebugImage) GetImageAddr() OptString
- func (s *DebugImage) GetImageSize() OptInt
- func (s *DebugImage) GetImageVmaddr() OptString
- func (s *DebugImage) GetType() string
- func (s *DebugImage) GetUUID() OptString
- func (s *DebugImage) MarshalJSON() ([]byte, error)
- func (s *DebugImage) SetArch(val OptString)
- func (s *DebugImage) SetCodeFile(val OptString)
- func (s *DebugImage) SetCodeID(val OptString)
- func (s *DebugImage) SetDebugFile(val OptString)
- func (s *DebugImage) SetDebugID(val OptString)
- func (s *DebugImage) SetImageAddr(val OptString)
- func (s *DebugImage) SetImageSize(val OptInt)
- func (s *DebugImage) SetImageVmaddr(val OptString)
- func (s *DebugImage) SetType(val string)
- func (s *DebugImage) SetUUID(val OptString)
- func (s *DebugImage) UnmarshalJSON(data []byte) error
- type DebugMeta
- func (s *DebugMeta) Decode(d *jx.Decoder) error
- func (s *DebugMeta) Encode(e *jx.Encoder)
- func (s *DebugMeta) GetImages() OptDebugImage
- func (s *DebugMeta) GetSdkInfo() OptDebugMetaSdkInfo
- func (s *DebugMeta) MarshalJSON() ([]byte, error)
- func (s *DebugMeta) SetImages(val OptDebugImage)
- func (s *DebugMeta) SetSdkInfo(val OptDebugMetaSdkInfo)
- func (s *DebugMeta) UnmarshalJSON(data []byte) error
- type DebugMetaSdkInfo
- func (s *DebugMetaSdkInfo) Decode(d *jx.Decoder) error
- func (s *DebugMetaSdkInfo) Encode(e *jx.Encoder)
- func (s *DebugMetaSdkInfo) GetSdkName() OptString
- func (s *DebugMetaSdkInfo) GetVersionMajor() OptInt
- func (s *DebugMetaSdkInfo) GetVersionMinor() OptInt
- func (s *DebugMetaSdkInfo) GetVersionPatchlevel() OptInt
- func (s *DebugMetaSdkInfo) MarshalJSON() ([]byte, error)
- func (s *DebugMetaSdkInfo) SetSdkName(val OptString)
- func (s *DebugMetaSdkInfo) SetVersionMajor(val OptInt)
- func (s *DebugMetaSdkInfo) SetVersionMinor(val OptInt)
- func (s *DebugMetaSdkInfo) SetVersionPatchlevel(val OptInt)
- func (s *DebugMetaSdkInfo) UnmarshalJSON(data []byte) error
- type EnvelopeOK
- type EnvelopeReq
- type EnvelopeReqWithContentType
- type Errno
- func (s *Errno) Decode(d *jx.Decoder) error
- func (s *Errno) Encode(e *jx.Encoder)
- func (s *Errno) GetName() OptString
- func (s *Errno) GetNumber() int
- func (s *Errno) MarshalJSON() ([]byte, error)
- func (s *Errno) SetName(val OptString)
- func (s *Errno) SetNumber(val int)
- func (s *Errno) UnmarshalJSON(data []byte) error
- type Error
- type ErrorHandler
- type ErrorStatusCode
- type Event
- func (s *Event) Decode(d *jx.Decoder) error
- func (s *Event) Encode(e *jx.Encoder)
- func (s *Event) GetBreadcrumbs() []Breadcrumb
- func (s *Event) GetContexts() OptEventContexts
- func (s *Event) GetDebugMeta() OptDebugMeta
- func (s *Event) GetDist() OptString
- func (s *Event) GetEnvironment() OptString
- func (s *Event) GetEventID() EventID
- func (s *Event) GetException() []Exception
- func (s *Event) GetExtra() OptEventExtra
- func (s *Event) GetFingerprint() []string
- func (s *Event) GetLevel() OptLevel
- func (s *Event) GetLogger() OptString
- func (s *Event) GetMessage() OptString
- func (s *Event) GetModules() OptEventModules
- func (s *Event) GetPlatform() string
- func (s *Event) GetRelease() OptString
- func (s *Event) GetRequest() OptRequest
- func (s *Event) GetSdk() OptSdkInfo
- func (s *Event) GetServerName() OptString
- func (s *Event) GetSpans() []Span
- func (s *Event) GetStartTimestamp() OptTimestamp
- func (s *Event) GetTags() OptEventTags
- func (s *Event) GetThreads() []Thread
- func (s *Event) GetTimestamp() Timestamp
- func (s *Event) GetTransaction() OptString
- func (s *Event) GetTransactionInfo() OptTransactionInfo
- func (s *Event) GetType() OptString
- func (s *Event) GetUser() OptUser
- func (s *Event) MarshalJSON() ([]byte, error)
- func (s *Event) SetBreadcrumbs(val []Breadcrumb)
- func (s *Event) SetContexts(val OptEventContexts)
- func (s *Event) SetDebugMeta(val OptDebugMeta)
- func (s *Event) SetDist(val OptString)
- func (s *Event) SetEnvironment(val OptString)
- func (s *Event) SetEventID(val EventID)
- func (s *Event) SetException(val []Exception)
- func (s *Event) SetExtra(val OptEventExtra)
- func (s *Event) SetFingerprint(val []string)
- func (s *Event) SetLevel(val OptLevel)
- func (s *Event) SetLogger(val OptString)
- func (s *Event) SetMessage(val OptString)
- func (s *Event) SetModules(val OptEventModules)
- func (s *Event) SetPlatform(val string)
- func (s *Event) SetRelease(val OptString)
- func (s *Event) SetRequest(val OptRequest)
- func (s *Event) SetSdk(val OptSdkInfo)
- func (s *Event) SetServerName(val OptString)
- func (s *Event) SetSpans(val []Span)
- func (s *Event) SetStartTimestamp(val OptTimestamp)
- func (s *Event) SetTags(val OptEventTags)
- func (s *Event) SetThreads(val []Thread)
- func (s *Event) SetTimestamp(val Timestamp)
- func (s *Event) SetTransaction(val OptString)
- func (s *Event) SetTransactionInfo(val OptTransactionInfo)
- func (s *Event) SetType(val OptString)
- func (s *Event) SetUser(val OptUser)
- func (s *Event) UnmarshalJSON(data []byte) error
- func (s *Event) Validate() error
- type EventContexts
- type EventExtra
- type EventID
- type EventModules
- type EventTags
- type Exception
- func (s *Exception) Decode(d *jx.Decoder) error
- func (s *Exception) Encode(e *jx.Encoder)
- func (s *Exception) GetMechanism() OptMechanism
- func (s *Exception) GetModule() OptString
- func (s *Exception) GetStacktrace() OptStacktrace
- func (s *Exception) GetThreadID() OptString
- func (s *Exception) GetType() string
- func (s *Exception) GetValue() string
- func (s *Exception) MarshalJSON() ([]byte, error)
- func (s *Exception) SetMechanism(val OptMechanism)
- func (s *Exception) SetModule(val OptString)
- func (s *Exception) SetStacktrace(val OptStacktrace)
- func (s *Exception) SetThreadID(val OptString)
- func (s *Exception) SetType(val string)
- func (s *Exception) SetValue(val string)
- func (s *Exception) UnmarshalJSON(data []byte) error
- type Frame
- func (s *Frame) Decode(d *jx.Decoder) error
- func (s *Frame) Encode(e *jx.Encoder)
- func (s *Frame) GetAbsPath() OptString
- func (s *Frame) GetAddrMode() OptString
- func (s *Frame) GetColno() OptInt
- func (s *Frame) GetContextLine() OptString
- func (s *Frame) GetFilename() OptString
- func (s *Frame) GetFunction() OptString
- func (s *Frame) GetImageAddr() OptString
- func (s *Frame) GetInApp() OptBool
- func (s *Frame) GetInstructionAddr() OptString
- func (s *Frame) GetLineno() OptInt
- func (s *Frame) GetModule() OptString
- func (s *Frame) GetPackage() OptString
- func (s *Frame) GetPlatform() OptString
- func (s *Frame) GetPostContext() []string
- func (s *Frame) GetPreContext() []string
- func (s *Frame) GetStackStart() OptBool
- func (s *Frame) GetSymbol() OptString
- func (s *Frame) GetSymbolAddr() OptString
- func (s *Frame) GetVars() OptFrameVars
- func (s *Frame) MarshalJSON() ([]byte, error)
- func (s *Frame) SetAbsPath(val OptString)
- func (s *Frame) SetAddrMode(val OptString)
- func (s *Frame) SetColno(val OptInt)
- func (s *Frame) SetContextLine(val OptString)
- func (s *Frame) SetFilename(val OptString)
- func (s *Frame) SetFunction(val OptString)
- func (s *Frame) SetImageAddr(val OptString)
- func (s *Frame) SetInApp(val OptBool)
- func (s *Frame) SetInstructionAddr(val OptString)
- func (s *Frame) SetLineno(val OptInt)
- func (s *Frame) SetModule(val OptString)
- func (s *Frame) SetPackage(val OptString)
- func (s *Frame) SetPlatform(val OptString)
- func (s *Frame) SetPostContext(val []string)
- func (s *Frame) SetPreContext(val []string)
- func (s *Frame) SetStackStart(val OptBool)
- func (s *Frame) SetSymbol(val OptString)
- func (s *Frame) SetSymbolAddr(val OptString)
- func (s *Frame) SetVars(val OptFrameVars)
- func (s *Frame) UnmarshalJSON(data []byte) error
- type FrameVars
- type Handler
- type Invoker
- type Labeler
- type Level
- type MachException
- func (s *MachException) Decode(d *jx.Decoder) error
- func (s *MachException) Encode(e *jx.Encoder)
- func (s *MachException) GetCode() int
- func (s *MachException) GetException() int
- func (s *MachException) GetName() OptString
- func (s *MachException) GetSubcode() int
- func (s *MachException) MarshalJSON() ([]byte, error)
- func (s *MachException) SetCode(val int)
- func (s *MachException) SetException(val int)
- func (s *MachException) SetName(val OptString)
- func (s *MachException) SetSubcode(val int)
- func (s *MachException) UnmarshalJSON(data []byte) error
- type Mechanism
- func (s *Mechanism) Decode(d *jx.Decoder) error
- func (s *Mechanism) Encode(e *jx.Encoder)
- func (s *Mechanism) GetData() OptMechanismData
- func (s *Mechanism) GetDescription() OptString
- func (s *Mechanism) GetHandled() OptBool
- func (s *Mechanism) GetHelpLink() OptString
- func (s *Mechanism) GetMeta() OptMechanismMeta
- func (s *Mechanism) GetSynthetic() OptBool
- func (s *Mechanism) GetType() string
- func (s *Mechanism) MarshalJSON() ([]byte, error)
- func (s *Mechanism) SetData(val OptMechanismData)
- func (s *Mechanism) SetDescription(val OptString)
- func (s *Mechanism) SetHandled(val OptBool)
- func (s *Mechanism) SetHelpLink(val OptString)
- func (s *Mechanism) SetMeta(val OptMechanismMeta)
- func (s *Mechanism) SetSynthetic(val OptBool)
- func (s *Mechanism) SetType(val string)
- func (s *Mechanism) UnmarshalJSON(data []byte) error
- type MechanismData
- type MechanismMeta
- func (s *MechanismMeta) Decode(d *jx.Decoder) error
- func (s *MechanismMeta) Encode(e *jx.Encoder)
- func (s *MechanismMeta) GetErrno() OptErrno
- func (s *MechanismMeta) GetMachException() OptMachException
- func (s *MechanismMeta) GetNsError() OptNSError
- func (s *MechanismMeta) GetSignal() OptSignal
- func (s *MechanismMeta) MarshalJSON() ([]byte, error)
- func (s *MechanismMeta) SetErrno(val OptErrno)
- func (s *MechanismMeta) SetMachException(val OptMachException)
- func (s *MechanismMeta) SetNsError(val OptNSError)
- func (s *MechanismMeta) SetSignal(val OptSignal)
- func (s *MechanismMeta) UnmarshalJSON(data []byte) error
- type Middleware
- type NSError
- func (s *NSError) Decode(d *jx.Decoder) error
- func (s *NSError) Encode(e *jx.Encoder)
- func (s *NSError) GetCode() int
- func (s *NSError) GetDomain() OptString
- func (s *NSError) MarshalJSON() ([]byte, error)
- func (s *NSError) SetCode(val int)
- func (s *NSError) SetDomain(val OptString)
- func (s *NSError) UnmarshalJSON(data []byte) error
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptBreadcrumbData
- func (o *OptBreadcrumbData) Decode(d *jx.Decoder) error
- func (o OptBreadcrumbData) Encode(e *jx.Encoder)
- func (o OptBreadcrumbData) Get() (v BreadcrumbData, ok bool)
- func (o OptBreadcrumbData) IsSet() bool
- func (s OptBreadcrumbData) MarshalJSON() ([]byte, error)
- func (o OptBreadcrumbData) Or(d BreadcrumbData) BreadcrumbData
- func (o *OptBreadcrumbData) Reset()
- func (o *OptBreadcrumbData) SetTo(v BreadcrumbData)
- func (s *OptBreadcrumbData) UnmarshalJSON(data []byte) error
- type OptDebugImage
- func (o *OptDebugImage) Decode(d *jx.Decoder) error
- func (o OptDebugImage) Encode(e *jx.Encoder)
- func (o OptDebugImage) Get() (v DebugImage, ok bool)
- func (o OptDebugImage) IsSet() bool
- func (s OptDebugImage) MarshalJSON() ([]byte, error)
- func (o OptDebugImage) Or(d DebugImage) DebugImage
- func (o *OptDebugImage) Reset()
- func (o *OptDebugImage) SetTo(v DebugImage)
- func (s *OptDebugImage) UnmarshalJSON(data []byte) error
- type OptDebugMeta
- func (o *OptDebugMeta) Decode(d *jx.Decoder) error
- func (o OptDebugMeta) Encode(e *jx.Encoder)
- func (o OptDebugMeta) Get() (v DebugMeta, ok bool)
- func (o OptDebugMeta) IsSet() bool
- func (s OptDebugMeta) MarshalJSON() ([]byte, error)
- func (o OptDebugMeta) Or(d DebugMeta) DebugMeta
- func (o *OptDebugMeta) Reset()
- func (o *OptDebugMeta) SetTo(v DebugMeta)
- func (s *OptDebugMeta) UnmarshalJSON(data []byte) error
- type OptDebugMetaSdkInfo
- func (o *OptDebugMetaSdkInfo) Decode(d *jx.Decoder) error
- func (o OptDebugMetaSdkInfo) Encode(e *jx.Encoder)
- func (o OptDebugMetaSdkInfo) Get() (v DebugMetaSdkInfo, ok bool)
- func (o OptDebugMetaSdkInfo) IsSet() bool
- func (s OptDebugMetaSdkInfo) MarshalJSON() ([]byte, error)
- func (o OptDebugMetaSdkInfo) Or(d DebugMetaSdkInfo) DebugMetaSdkInfo
- func (o *OptDebugMetaSdkInfo) Reset()
- func (o *OptDebugMetaSdkInfo) SetTo(v DebugMetaSdkInfo)
- func (s *OptDebugMetaSdkInfo) UnmarshalJSON(data []byte) error
- type OptErrno
- func (o *OptErrno) Decode(d *jx.Decoder) error
- func (o OptErrno) Encode(e *jx.Encoder)
- func (o OptErrno) Get() (v Errno, ok bool)
- func (o OptErrno) IsSet() bool
- func (s OptErrno) MarshalJSON() ([]byte, error)
- func (o OptErrno) Or(d Errno) Errno
- func (o *OptErrno) Reset()
- func (o *OptErrno) SetTo(v Errno)
- func (s *OptErrno) UnmarshalJSON(data []byte) error
- type OptEventContexts
- func (o *OptEventContexts) Decode(d *jx.Decoder) error
- func (o OptEventContexts) Encode(e *jx.Encoder)
- func (o OptEventContexts) Get() (v EventContexts, ok bool)
- func (o OptEventContexts) IsSet() bool
- func (s OptEventContexts) MarshalJSON() ([]byte, error)
- func (o OptEventContexts) Or(d EventContexts) EventContexts
- func (o *OptEventContexts) Reset()
- func (o *OptEventContexts) SetTo(v EventContexts)
- func (s *OptEventContexts) UnmarshalJSON(data []byte) error
- type OptEventExtra
- func (o *OptEventExtra) Decode(d *jx.Decoder) error
- func (o OptEventExtra) Encode(e *jx.Encoder)
- func (o OptEventExtra) Get() (v EventExtra, ok bool)
- func (o OptEventExtra) IsSet() bool
- func (s OptEventExtra) MarshalJSON() ([]byte, error)
- func (o OptEventExtra) Or(d EventExtra) EventExtra
- func (o *OptEventExtra) Reset()
- func (o *OptEventExtra) SetTo(v EventExtra)
- func (s *OptEventExtra) UnmarshalJSON(data []byte) error
- type OptEventModules
- func (o *OptEventModules) Decode(d *jx.Decoder) error
- func (o OptEventModules) Encode(e *jx.Encoder)
- func (o OptEventModules) Get() (v EventModules, ok bool)
- func (o OptEventModules) IsSet() bool
- func (s OptEventModules) MarshalJSON() ([]byte, error)
- func (o OptEventModules) Or(d EventModules) EventModules
- func (o *OptEventModules) Reset()
- func (o *OptEventModules) SetTo(v EventModules)
- func (s *OptEventModules) UnmarshalJSON(data []byte) error
- type OptEventTags
- func (o *OptEventTags) Decode(d *jx.Decoder) error
- func (o OptEventTags) Encode(e *jx.Encoder)
- func (o OptEventTags) Get() (v EventTags, ok bool)
- func (o OptEventTags) IsSet() bool
- func (s OptEventTags) MarshalJSON() ([]byte, error)
- func (o OptEventTags) Or(d EventTags) EventTags
- func (o *OptEventTags) Reset()
- func (o *OptEventTags) SetTo(v EventTags)
- func (s *OptEventTags) UnmarshalJSON(data []byte) error
- type OptFrameVars
- func (o *OptFrameVars) Decode(d *jx.Decoder) error
- func (o OptFrameVars) Encode(e *jx.Encoder)
- func (o OptFrameVars) Get() (v FrameVars, ok bool)
- func (o OptFrameVars) IsSet() bool
- func (s OptFrameVars) MarshalJSON() ([]byte, error)
- func (o OptFrameVars) Or(d FrameVars) FrameVars
- func (o *OptFrameVars) Reset()
- func (o *OptFrameVars) SetTo(v FrameVars)
- func (s *OptFrameVars) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptLevel
- func (o *OptLevel) Decode(d *jx.Decoder) error
- func (o OptLevel) Encode(e *jx.Encoder)
- func (o OptLevel) Get() (v Level, ok bool)
- func (o OptLevel) IsSet() bool
- func (s OptLevel) MarshalJSON() ([]byte, error)
- func (o OptLevel) Or(d Level) Level
- func (o *OptLevel) Reset()
- func (o *OptLevel) SetTo(v Level)
- func (s *OptLevel) UnmarshalJSON(data []byte) error
- type OptMachException
- func (o *OptMachException) Decode(d *jx.Decoder) error
- func (o OptMachException) Encode(e *jx.Encoder)
- func (o OptMachException) Get() (v MachException, ok bool)
- func (o OptMachException) IsSet() bool
- func (s OptMachException) MarshalJSON() ([]byte, error)
- func (o OptMachException) Or(d MachException) MachException
- func (o *OptMachException) Reset()
- func (o *OptMachException) SetTo(v MachException)
- func (s *OptMachException) UnmarshalJSON(data []byte) error
- type OptMechanism
- func (o *OptMechanism) Decode(d *jx.Decoder) error
- func (o OptMechanism) Encode(e *jx.Encoder)
- func (o OptMechanism) Get() (v Mechanism, ok bool)
- func (o OptMechanism) IsSet() bool
- func (s OptMechanism) MarshalJSON() ([]byte, error)
- func (o OptMechanism) Or(d Mechanism) Mechanism
- func (o *OptMechanism) Reset()
- func (o *OptMechanism) SetTo(v Mechanism)
- func (s *OptMechanism) UnmarshalJSON(data []byte) error
- type OptMechanismData
- func (o *OptMechanismData) Decode(d *jx.Decoder) error
- func (o OptMechanismData) Encode(e *jx.Encoder)
- func (o OptMechanismData) Get() (v MechanismData, ok bool)
- func (o OptMechanismData) IsSet() bool
- func (s OptMechanismData) MarshalJSON() ([]byte, error)
- func (o OptMechanismData) Or(d MechanismData) MechanismData
- func (o *OptMechanismData) Reset()
- func (o *OptMechanismData) SetTo(v MechanismData)
- func (s *OptMechanismData) UnmarshalJSON(data []byte) error
- type OptMechanismMeta
- func (o *OptMechanismMeta) Decode(d *jx.Decoder) error
- func (o OptMechanismMeta) Encode(e *jx.Encoder)
- func (o OptMechanismMeta) Get() (v MechanismMeta, ok bool)
- func (o OptMechanismMeta) IsSet() bool
- func (s OptMechanismMeta) MarshalJSON() ([]byte, error)
- func (o OptMechanismMeta) Or(d MechanismMeta) MechanismMeta
- func (o *OptMechanismMeta) Reset()
- func (o *OptMechanismMeta) SetTo(v MechanismMeta)
- func (s *OptMechanismMeta) UnmarshalJSON(data []byte) error
- type OptNSError
- func (o *OptNSError) Decode(d *jx.Decoder) error
- func (o OptNSError) Encode(e *jx.Encoder)
- func (o OptNSError) Get() (v NSError, ok bool)
- func (o OptNSError) IsSet() bool
- func (s OptNSError) MarshalJSON() ([]byte, error)
- func (o OptNSError) Or(d NSError) NSError
- func (o *OptNSError) Reset()
- func (o *OptNSError) SetTo(v NSError)
- func (s *OptNSError) UnmarshalJSON(data []byte) error
- type OptRequest
- func (o *OptRequest) Decode(d *jx.Decoder) error
- func (o OptRequest) Encode(e *jx.Encoder)
- func (o OptRequest) Get() (v Request, ok bool)
- func (o OptRequest) IsSet() bool
- func (s OptRequest) MarshalJSON() ([]byte, error)
- func (o OptRequest) Or(d Request) Request
- func (o *OptRequest) Reset()
- func (o *OptRequest) SetTo(v Request)
- func (s *OptRequest) UnmarshalJSON(data []byte) error
- type OptRequestEnv
- func (o *OptRequestEnv) Decode(d *jx.Decoder) error
- func (o OptRequestEnv) Encode(e *jx.Encoder)
- func (o OptRequestEnv) Get() (v RequestEnv, ok bool)
- func (o OptRequestEnv) IsSet() bool
- func (s OptRequestEnv) MarshalJSON() ([]byte, error)
- func (o OptRequestEnv) Or(d RequestEnv) RequestEnv
- func (o *OptRequestEnv) Reset()
- func (o *OptRequestEnv) SetTo(v RequestEnv)
- func (s *OptRequestEnv) UnmarshalJSON(data []byte) error
- type OptRequestHeaders
- func (o *OptRequestHeaders) Decode(d *jx.Decoder) error
- func (o OptRequestHeaders) Encode(e *jx.Encoder)
- func (o OptRequestHeaders) Get() (v RequestHeaders, ok bool)
- func (o OptRequestHeaders) IsSet() bool
- func (s OptRequestHeaders) MarshalJSON() ([]byte, error)
- func (o OptRequestHeaders) Or(d RequestHeaders) RequestHeaders
- func (o *OptRequestHeaders) Reset()
- func (o *OptRequestHeaders) SetTo(v RequestHeaders)
- func (s *OptRequestHeaders) UnmarshalJSON(data []byte) error
- type OptSdkInfo
- func (o *OptSdkInfo) Decode(d *jx.Decoder) error
- func (o OptSdkInfo) Encode(e *jx.Encoder)
- func (o OptSdkInfo) Get() (v SdkInfo, ok bool)
- func (o OptSdkInfo) IsSet() bool
- func (s OptSdkInfo) MarshalJSON() ([]byte, error)
- func (o OptSdkInfo) Or(d SdkInfo) SdkInfo
- func (o *OptSdkInfo) Reset()
- func (o *OptSdkInfo) SetTo(v SdkInfo)
- func (s *OptSdkInfo) UnmarshalJSON(data []byte) error
- type OptSignal
- func (o *OptSignal) Decode(d *jx.Decoder) error
- func (o OptSignal) Encode(e *jx.Encoder)
- func (o OptSignal) Get() (v Signal, ok bool)
- func (o OptSignal) IsSet() bool
- func (s OptSignal) MarshalJSON() ([]byte, error)
- func (o OptSignal) Or(d Signal) Signal
- func (o *OptSignal) Reset()
- func (o *OptSignal) SetTo(v Signal)
- func (s *OptSignal) UnmarshalJSON(data []byte) error
- type OptSpanData
- func (o *OptSpanData) Decode(d *jx.Decoder) error
- func (o OptSpanData) Encode(e *jx.Encoder)
- func (o OptSpanData) Get() (v SpanData, ok bool)
- func (o OptSpanData) IsSet() bool
- func (s OptSpanData) MarshalJSON() ([]byte, error)
- func (o OptSpanData) Or(d SpanData) SpanData
- func (o *OptSpanData) Reset()
- func (o *OptSpanData) SetTo(v SpanData)
- func (s *OptSpanData) UnmarshalJSON(data []byte) error
- type OptSpanID
- func (o *OptSpanID) Decode(d *jx.Decoder) error
- func (o OptSpanID) Encode(e *jx.Encoder)
- func (o OptSpanID) Get() (v SpanID, ok bool)
- func (o OptSpanID) IsSet() bool
- func (s OptSpanID) MarshalJSON() ([]byte, error)
- func (o OptSpanID) Or(d SpanID) SpanID
- func (o *OptSpanID) Reset()
- func (o *OptSpanID) SetTo(v SpanID)
- func (s *OptSpanID) UnmarshalJSON(data []byte) error
- type OptSpanTags
- func (o *OptSpanTags) Decode(d *jx.Decoder) error
- func (o OptSpanTags) Encode(e *jx.Encoder)
- func (o OptSpanTags) Get() (v SpanTags, ok bool)
- func (o OptSpanTags) IsSet() bool
- func (s OptSpanTags) MarshalJSON() ([]byte, error)
- func (o OptSpanTags) Or(d SpanTags) SpanTags
- func (o *OptSpanTags) Reset()
- func (o *OptSpanTags) SetTo(v SpanTags)
- func (s *OptSpanTags) UnmarshalJSON(data []byte) error
- type OptStacktrace
- func (o *OptStacktrace) Decode(d *jx.Decoder) error
- func (o OptStacktrace) Encode(e *jx.Encoder)
- func (o OptStacktrace) Get() (v Stacktrace, ok bool)
- func (o OptStacktrace) IsSet() bool
- func (s OptStacktrace) MarshalJSON() ([]byte, error)
- func (o OptStacktrace) Or(d Stacktrace) Stacktrace
- func (o *OptStacktrace) Reset()
- func (o *OptStacktrace) SetTo(v Stacktrace)
- func (s *OptStacktrace) UnmarshalJSON(data []byte) error
- type OptStacktraceRegisters
- func (o *OptStacktraceRegisters) Decode(d *jx.Decoder) error
- func (o OptStacktraceRegisters) Encode(e *jx.Encoder)
- func (o OptStacktraceRegisters) Get() (v StacktraceRegisters, ok bool)
- func (o OptStacktraceRegisters) IsSet() bool
- func (s OptStacktraceRegisters) MarshalJSON() ([]byte, error)
- func (o OptStacktraceRegisters) Or(d StacktraceRegisters) StacktraceRegisters
- func (o *OptStacktraceRegisters) Reset()
- func (o *OptStacktraceRegisters) SetTo(v StacktraceRegisters)
- func (s *OptStacktraceRegisters) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptThreadHeldLocks
- func (o *OptThreadHeldLocks) Decode(d *jx.Decoder) error
- func (o OptThreadHeldLocks) Encode(e *jx.Encoder)
- func (o OptThreadHeldLocks) Get() (v ThreadHeldLocks, ok bool)
- func (o OptThreadHeldLocks) IsSet() bool
- func (s OptThreadHeldLocks) MarshalJSON() ([]byte, error)
- func (o OptThreadHeldLocks) Or(d ThreadHeldLocks) ThreadHeldLocks
- func (o *OptThreadHeldLocks) Reset()
- func (o *OptThreadHeldLocks) SetTo(v ThreadHeldLocks)
- func (s *OptThreadHeldLocks) UnmarshalJSON(data []byte) error
- type OptTimestamp
- func (o *OptTimestamp) Decode(d *jx.Decoder) error
- func (o OptTimestamp) Encode(e *jx.Encoder)
- func (o OptTimestamp) Get() (v Timestamp, ok bool)
- func (o OptTimestamp) IsSet() bool
- func (s OptTimestamp) MarshalJSON() ([]byte, error)
- func (o OptTimestamp) Or(d Timestamp) Timestamp
- func (o *OptTimestamp) Reset()
- func (o *OptTimestamp) SetTo(v Timestamp)
- func (s *OptTimestamp) UnmarshalJSON(data []byte) error
- type OptTransactionInfo
- func (o *OptTransactionInfo) Decode(d *jx.Decoder) error
- func (o OptTransactionInfo) Encode(e *jx.Encoder)
- func (o OptTransactionInfo) Get() (v TransactionInfo, ok bool)
- func (o OptTransactionInfo) IsSet() bool
- func (s OptTransactionInfo) MarshalJSON() ([]byte, error)
- func (o OptTransactionInfo) Or(d TransactionInfo) TransactionInfo
- func (o *OptTransactionInfo) Reset()
- func (o *OptTransactionInfo) SetTo(v TransactionInfo)
- func (s *OptTransactionInfo) UnmarshalJSON(data []byte) error
- type OptUser
- func (o *OptUser) Decode(d *jx.Decoder) error
- func (o OptUser) Encode(e *jx.Encoder)
- func (o OptUser) Get() (v User, ok bool)
- func (o OptUser) IsSet() bool
- func (s OptUser) MarshalJSON() ([]byte, error)
- func (o OptUser) Or(d User) User
- func (o *OptUser) Reset()
- func (o *OptUser) SetTo(v User)
- func (s *OptUser) UnmarshalJSON(data []byte) error
- type Option
- type Request
- func (s *Request) Decode(d *jx.Decoder) error
- func (s *Request) Encode(e *jx.Encoder)
- func (s *Request) GetCookies() OptString
- func (s *Request) GetData() OptString
- func (s *Request) GetEnv() OptRequestEnv
- func (s *Request) GetHeaders() OptRequestHeaders
- func (s *Request) GetMethod() OptString
- func (s *Request) GetQueryString() OptString
- func (s *Request) GetURL() OptString
- func (s *Request) MarshalJSON() ([]byte, error)
- func (s *Request) SetCookies(val OptString)
- func (s *Request) SetData(val OptString)
- func (s *Request) SetEnv(val OptRequestEnv)
- func (s *Request) SetHeaders(val OptRequestHeaders)
- func (s *Request) SetMethod(val OptString)
- func (s *Request) SetQueryString(val OptString)
- func (s *Request) SetURL(val OptString)
- func (s *Request) UnmarshalJSON(data []byte) error
- type RequestEnv
- type RequestHeaders
- type Route
- type SdkInfo
- func (s *SdkInfo) Decode(d *jx.Decoder) error
- func (s *SdkInfo) Encode(e *jx.Encoder)
- func (s *SdkInfo) GetIntegrations() []string
- func (s *SdkInfo) GetName() OptString
- func (s *SdkInfo) GetPackages() []SdkPackage
- func (s *SdkInfo) GetVersion() string
- func (s *SdkInfo) MarshalJSON() ([]byte, error)
- func (s *SdkInfo) SetIntegrations(val []string)
- func (s *SdkInfo) SetName(val OptString)
- func (s *SdkInfo) SetPackages(val []SdkPackage)
- func (s *SdkInfo) SetVersion(val string)
- func (s *SdkInfo) UnmarshalJSON(data []byte) error
- type SdkPackage
- func (s *SdkPackage) Decode(d *jx.Decoder) error
- func (s *SdkPackage) Encode(e *jx.Encoder)
- func (s *SdkPackage) GetName() OptString
- func (s *SdkPackage) GetVersion() OptString
- func (s *SdkPackage) MarshalJSON() ([]byte, error)
- func (s *SdkPackage) SetName(val OptString)
- func (s *SdkPackage) SetVersion(val OptString)
- func (s *SdkPackage) UnmarshalJSON(data []byte) error
- type SentryURLServer
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type Signal
- func (s *Signal) Decode(d *jx.Decoder) error
- func (s *Signal) Encode(e *jx.Encoder)
- func (s *Signal) GetCode() OptInt
- func (s *Signal) GetCodeName() OptString
- func (s *Signal) GetName() OptString
- func (s *Signal) GetNumber() int
- func (s *Signal) MarshalJSON() ([]byte, error)
- func (s *Signal) SetCode(val OptInt)
- func (s *Signal) SetCodeName(val OptString)
- func (s *Signal) SetName(val OptString)
- func (s *Signal) SetNumber(val int)
- func (s *Signal) UnmarshalJSON(data []byte) error
- type Span
- func (s *Span) Decode(d *jx.Decoder) error
- func (s *Span) Encode(e *jx.Encoder)
- func (s *Span) GetData() OptSpanData
- func (s *Span) GetDescription() OptString
- func (s *Span) GetName() OptString
- func (s *Span) GetOp() OptString
- func (s *Span) GetParentSpanID() OptSpanID
- func (s *Span) GetSpanID() SpanID
- func (s *Span) GetStartTimestamp() Timestamp
- func (s *Span) GetStatus() OptString
- func (s *Span) GetTags() OptSpanTags
- func (s *Span) GetTimestamp() Timestamp
- func (s *Span) GetTraceID() TraceID
- func (s *Span) MarshalJSON() ([]byte, error)
- func (s *Span) SetData(val OptSpanData)
- func (s *Span) SetDescription(val OptString)
- func (s *Span) SetName(val OptString)
- func (s *Span) SetOp(val OptString)
- func (s *Span) SetParentSpanID(val OptSpanID)
- func (s *Span) SetSpanID(val SpanID)
- func (s *Span) SetStartTimestamp(val Timestamp)
- func (s *Span) SetStatus(val OptString)
- func (s *Span) SetTags(val OptSpanTags)
- func (s *Span) SetTimestamp(val Timestamp)
- func (s *Span) SetTraceID(val TraceID)
- func (s *Span) UnmarshalJSON(data []byte) error
- func (s *Span) Validate() error
- type SpanData
- type SpanID
- type SpanTags
- type Stacktrace
- func (s *Stacktrace) Decode(d *jx.Decoder) error
- func (s *Stacktrace) Encode(e *jx.Encoder)
- func (s *Stacktrace) GetFrames() []Frame
- func (s *Stacktrace) GetRegisters() OptStacktraceRegisters
- func (s *Stacktrace) MarshalJSON() ([]byte, error)
- func (s *Stacktrace) SetFrames(val []Frame)
- func (s *Stacktrace) SetRegisters(val OptStacktraceRegisters)
- func (s *Stacktrace) UnmarshalJSON(data []byte) error
- type StacktraceRegisters
- type Thread
- func (s *Thread) Decode(d *jx.Decoder) error
- func (s *Thread) Encode(e *jx.Encoder)
- func (s *Thread) GetCrashed() OptBool
- func (s *Thread) GetCurrent() OptBool
- func (s *Thread) GetHeldLocks() OptThreadHeldLocks
- func (s *Thread) GetID() string
- func (s *Thread) GetMain() OptBool
- func (s *Thread) GetName() OptString
- func (s *Thread) GetState() OptString
- func (s *Thread) MarshalJSON() ([]byte, error)
- func (s *Thread) SetCrashed(val OptBool)
- func (s *Thread) SetCurrent(val OptBool)
- func (s *Thread) SetHeldLocks(val OptThreadHeldLocks)
- func (s *Thread) SetID(val string)
- func (s *Thread) SetMain(val OptBool)
- func (s *Thread) SetName(val OptString)
- func (s *Thread) SetState(val OptString)
- func (s *Thread) UnmarshalJSON(data []byte) error
- type ThreadHeldLocks
- type Timestamp
- type TraceID
- type TransactionInfo
- func (s *TransactionInfo) Decode(d *jx.Decoder) error
- func (s *TransactionInfo) Encode(e *jx.Encoder)
- func (s *TransactionInfo) GetSource() TransactionSource
- func (s *TransactionInfo) MarshalJSON() ([]byte, error)
- func (s *TransactionInfo) SetSource(val TransactionSource)
- func (s *TransactionInfo) UnmarshalJSON(data []byte) error
- type TransactionSource
- type UnimplementedHandler
- type User
- func (s *User) Decode(d *jx.Decoder) error
- func (s *User) Encode(e *jx.Encoder)
- func (s *User) GetAdditionalProps() UserAdditional
- func (s *User) GetEmail() OptString
- func (s *User) GetID() OptString
- func (s *User) GetIPAddress() OptString
- func (s *User) GetName() OptString
- func (s *User) GetSegment() OptString
- func (s *User) GetUsername() OptString
- func (s *User) MarshalJSON() ([]byte, error)
- func (s *User) SetAdditionalProps(val UserAdditional)
- func (s *User) SetEmail(val OptString)
- func (s *User) SetID(val OptString)
- func (s *User) SetIPAddress(val OptString)
- func (s *User) SetName(val OptString)
- func (s *User) SetSegment(val OptString)
- func (s *User) SetUsername(val OptString)
- func (s *User) UnmarshalJSON(data []byte) error
- type UserAdditional
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Breadcrumb ¶
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 (*Breadcrumb) Decode ¶
func (s *Breadcrumb) Decode(d *jx.Decoder) error
Decode decodes Breadcrumb from json.
func (*Breadcrumb) Encode ¶
func (s *Breadcrumb) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Breadcrumb) GetCategory ¶
func (s *Breadcrumb) GetCategory() OptString
GetCategory returns the value of Category.
func (*Breadcrumb) GetData ¶
func (s *Breadcrumb) GetData() OptBreadcrumbData
GetData returns the value of Data.
func (*Breadcrumb) GetLevel ¶
func (s *Breadcrumb) GetLevel() OptLevel
GetLevel returns the value of Level.
func (*Breadcrumb) GetMessage ¶
func (s *Breadcrumb) GetMessage() OptString
GetMessage returns the value of Message.
func (*Breadcrumb) GetTimestamp ¶
func (s *Breadcrumb) GetTimestamp() OptTimestamp
GetTimestamp returns the value of Timestamp.
func (*Breadcrumb) GetType ¶
func (s *Breadcrumb) GetType() OptString
GetType returns the value of Type.
func (*Breadcrumb) MarshalJSON ¶
func (s *Breadcrumb) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Breadcrumb) SetCategory ¶
func (s *Breadcrumb) SetCategory(val OptString)
SetCategory sets the value of Category.
func (*Breadcrumb) SetData ¶
func (s *Breadcrumb) SetData(val OptBreadcrumbData)
SetData sets the value of Data.
func (*Breadcrumb) SetLevel ¶
func (s *Breadcrumb) SetLevel(val OptLevel)
SetLevel sets the value of Level.
func (*Breadcrumb) SetMessage ¶
func (s *Breadcrumb) SetMessage(val OptString)
SetMessage sets the value of Message.
func (*Breadcrumb) SetTimestamp ¶
func (s *Breadcrumb) SetTimestamp(val OptTimestamp)
SetTimestamp sets the value of Timestamp.
func (*Breadcrumb) SetType ¶
func (s *Breadcrumb) SetType(val OptString)
SetType sets the value of Type.
func (*Breadcrumb) UnmarshalJSON ¶
func (s *Breadcrumb) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BreadcrumbData ¶
func (*BreadcrumbData) Decode ¶
func (s *BreadcrumbData) Decode(d *jx.Decoder) error
Decode decodes BreadcrumbData from json.
func (BreadcrumbData) Encode ¶
func (s BreadcrumbData) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (BreadcrumbData) MarshalJSON ¶
func (s BreadcrumbData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BreadcrumbData) UnmarshalJSON ¶
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.
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 ¶
See [this](https://develop.sentry.dev/sdk/event-payloads/contexts/). Ref: #/components/schemas/Context
func (Context) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Context) UnmarshalJSON ¶
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) 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 ¶
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 ¶
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 EnvelopeReq ¶
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 ¶
See [this](https://develop.sentry.dev/sdk/event-payloads/exception/#errno). Ref: #/components/schemas/Errno
func (*Errno) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Errno) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Error ¶
type Error string
func (Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
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) 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) GetEnvironment ¶
GetEnvironment returns the value of Environment.
func (*Event) GetEventID ¶
GetEventID returns the value of EventID.
func (*Event) GetException ¶
GetException returns the value of Exception.
func (*Event) GetExtra ¶
func (s *Event) GetExtra() OptEventExtra
GetExtra returns the value of Extra.
func (*Event) GetFingerprint ¶
GetFingerprint returns the value of Fingerprint.
func (*Event) GetMessage ¶
GetMessage returns the value of Message.
func (*Event) GetModules ¶
func (s *Event) GetModules() OptEventModules
GetModules returns the value of Modules.
func (*Event) GetPlatform ¶
GetPlatform returns the value of Platform.
func (*Event) GetRelease ¶
GetRelease returns the value of Release.
func (*Event) GetRequest ¶
func (s *Event) GetRequest() OptRequest
GetRequest returns the value of Request.
func (*Event) GetServerName ¶
GetServerName returns the value of ServerName.
func (*Event) GetStartTimestamp ¶
func (s *Event) GetStartTimestamp() OptTimestamp
GetStartTimestamp returns the value of StartTimestamp.
func (*Event) GetThreads ¶
GetThreads returns the value of Threads.
func (*Event) GetTimestamp ¶
GetTimestamp returns the value of Timestamp.
func (*Event) GetTransaction ¶
GetTransaction returns the value of Transaction.
func (*Event) GetTransactionInfo ¶
func (s *Event) GetTransactionInfo() OptTransactionInfo
GetTransactionInfo returns the value of TransactionInfo.
func (*Event) MarshalJSON ¶
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) SetEnvironment ¶
SetEnvironment sets the value of Environment.
func (*Event) SetEventID ¶
SetEventID sets the value of EventID.
func (*Event) SetException ¶
SetException sets the value of Exception.
func (*Event) SetExtra ¶
func (s *Event) SetExtra(val OptEventExtra)
SetExtra sets the value of Extra.
func (*Event) SetFingerprint ¶
SetFingerprint sets the value of Fingerprint.
func (*Event) SetMessage ¶
SetMessage sets the value of Message.
func (*Event) SetModules ¶
func (s *Event) SetModules(val OptEventModules)
SetModules sets the value of Modules.
func (*Event) SetPlatform ¶
SetPlatform sets the value of Platform.
func (*Event) SetRelease ¶
SetRelease sets the value of Release.
func (*Event) SetRequest ¶
func (s *Event) SetRequest(val OptRequest)
SetRequest sets the value of Request.
func (*Event) SetServerName ¶
SetServerName sets the value of ServerName.
func (*Event) SetStartTimestamp ¶
func (s *Event) SetStartTimestamp(val OptTimestamp)
SetStartTimestamp sets the value of StartTimestamp.
func (*Event) SetThreads ¶
SetThreads sets the value of Threads.
func (*Event) SetTimestamp ¶
SetTimestamp sets the value of Timestamp.
func (*Event) SetTransaction ¶
SetTransaction sets the value of Transaction.
func (*Event) SetTransactionInfo ¶
func (s *Event) SetTransactionInfo(val OptTransactionInfo)
SetTransactionInfo sets the value of TransactionInfo.
func (*Event) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type EventContexts ¶
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 ¶
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*EventID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type EventModules ¶
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 ¶
func (EventTags) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*EventTags) UnmarshalJSON ¶
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) GetMechanism ¶
func (s *Exception) GetMechanism() OptMechanism
GetMechanism returns the value of Mechanism.
func (*Exception) GetStacktrace ¶
func (s *Exception) GetStacktrace() OptStacktrace
GetStacktrace returns the value of Stacktrace.
func (*Exception) GetThreadID ¶
GetThreadID returns the value of ThreadID.
func (*Exception) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Exception) SetMechanism ¶
func (s *Exception) SetMechanism(val OptMechanism)
SetMechanism sets the value of Mechanism.
func (*Exception) SetStacktrace ¶
func (s *Exception) SetStacktrace(val OptStacktrace)
SetStacktrace sets the value of Stacktrace.
func (*Exception) SetThreadID ¶
SetThreadID sets the value of ThreadID.
func (*Exception) UnmarshalJSON ¶
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) GetAbsPath ¶
GetAbsPath returns the value of AbsPath.
func (*Frame) GetAddrMode ¶
GetAddrMode returns the value of AddrMode.
func (*Frame) GetContextLine ¶
GetContextLine returns the value of ContextLine.
func (*Frame) GetFilename ¶
GetFilename returns the value of Filename.
func (*Frame) GetFunction ¶
GetFunction returns the value of Function.
func (*Frame) GetImageAddr ¶
GetImageAddr returns the value of ImageAddr.
func (*Frame) GetInstructionAddr ¶
GetInstructionAddr returns the value of InstructionAddr.
func (*Frame) GetPackage ¶
GetPackage returns the value of Package.
func (*Frame) GetPlatform ¶
GetPlatform returns the value of Platform.
func (*Frame) GetPostContext ¶
GetPostContext returns the value of PostContext.
func (*Frame) GetPreContext ¶
GetPreContext returns the value of PreContext.
func (*Frame) GetStackStart ¶
GetStackStart returns the value of StackStart.
func (*Frame) GetSymbolAddr ¶
GetSymbolAddr returns the value of SymbolAddr.
func (*Frame) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Frame) SetAbsPath ¶
SetAbsPath sets the value of AbsPath.
func (*Frame) SetAddrMode ¶
SetAddrMode sets the value of AddrMode.
func (*Frame) SetContextLine ¶
SetContextLine sets the value of ContextLine.
func (*Frame) SetFilename ¶
SetFilename sets the value of Filename.
func (*Frame) SetFunction ¶
SetFunction sets the value of Function.
func (*Frame) SetImageAddr ¶
SetImageAddr sets the value of ImageAddr.
func (*Frame) SetInstructionAddr ¶
SetInstructionAddr sets the value of InstructionAddr.
func (*Frame) SetPackage ¶
SetPackage sets the value of Package.
func (*Frame) SetPlatform ¶
SetPlatform sets the value of Platform.
func (*Frame) SetPostContext ¶
SetPostContext sets the value of PostContext.
func (*Frame) SetPreContext ¶
SetPreContext sets the value of PreContext.
func (*Frame) SetStackStart ¶
SetStackStart sets the value of StackStart.
func (*Frame) SetSymbolAddr ¶
SetSymbolAddr sets the value of SymbolAddr.
func (*Frame) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FrameVars ¶
func (FrameVars) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*FrameVars) UnmarshalJSON ¶
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
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) AttributeSet ¶ added in v0.10.0
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type Level ¶
type Level string
func (Level) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Level) UnmarshalJSON ¶
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) GetData ¶
func (s *Mechanism) GetData() OptMechanismData
GetData returns the value of Data.
func (*Mechanism) GetDescription ¶
GetDescription returns the value of Description.
func (*Mechanism) GetHandled ¶
GetHandled returns the value of Handled.
func (*Mechanism) GetHelpLink ¶
GetHelpLink returns the value of HelpLink.
func (*Mechanism) GetMeta ¶
func (s *Mechanism) GetMeta() OptMechanismMeta
GetMeta returns the value of Meta.
func (*Mechanism) GetSynthetic ¶
GetSynthetic returns the value of Synthetic.
func (*Mechanism) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Mechanism) SetData ¶
func (s *Mechanism) SetData(val OptMechanismData)
SetData sets the value of Data.
func (*Mechanism) SetDescription ¶
SetDescription sets the value of Description.
func (*Mechanism) SetHandled ¶
SetHandled sets the value of Handled.
func (*Mechanism) SetHelpLink ¶
SetHelpLink sets the value of HelpLink.
func (*Mechanism) SetMeta ¶
func (s *Mechanism) SetMeta(val OptMechanismMeta)
SetMeta sets the value of Meta.
func (*Mechanism) SetSynthetic ¶
SetSynthetic sets the value of Synthetic.
func (*Mechanism) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type MechanismData ¶
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 NSError ¶
See [this](https://develop.sentry.dev/sdk/event-payloads/exception/#ns_error). Ref: #/components/schemas/NSError
func (*NSError) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*NSError) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
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 ¶
func (o OptBreadcrumbData) Or(d BreadcrumbData) BreadcrumbData
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptDebugImage) Or(d DebugImage) DebugImage
Or returns value if set, or given parameter if does not.
func (*OptDebugImage) UnmarshalJSON ¶
func (s *OptDebugImage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDebugMeta ¶
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 ¶
func (o OptDebugMeta) Or(d DebugMeta) DebugMeta
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptDebugMetaSdkInfo) Or(d DebugMetaSdkInfo) DebugMetaSdkInfo
Or returns value if set, or given parameter if does not.
func (*OptDebugMetaSdkInfo) SetTo ¶
func (o *OptDebugMetaSdkInfo) SetTo(v DebugMetaSdkInfo)
SetTo sets value to v.
func (*OptDebugMetaSdkInfo) UnmarshalJSON ¶
func (s *OptDebugMetaSdkInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptErrno ¶
OptErrno is optional Errno.
func NewOptErrno ¶
NewOptErrno returns new OptErrno with value set to v.
func (OptErrno) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptErrno) UnmarshalJSON ¶
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 ¶
func (o OptEventContexts) Or(d EventContexts) EventContexts
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptEventExtra) Or(d EventExtra) EventExtra
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptEventModules) Or(d EventModules) EventModules
Or returns value if set, or given parameter if does not.
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 ¶
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 ¶
func (o OptEventTags) Or(d EventTags) EventTags
Or returns value if set, or given parameter if does not.
func (*OptEventTags) UnmarshalJSON ¶
func (s *OptEventTags) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFrameVars ¶
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 ¶
func (o OptFrameVars) Or(d FrameVars) FrameVars
Or returns value if set, or given parameter if does not.
func (*OptFrameVars) UnmarshalJSON ¶
func (s *OptFrameVars) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptLevel ¶
OptLevel is optional Level.
func NewOptLevel ¶
NewOptLevel returns new OptLevel with value set to v.
func (OptLevel) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptLevel) UnmarshalJSON ¶
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 ¶
func (o OptMachException) Or(d MachException) MachException
Or returns value if set, or given parameter if does not.
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 ¶
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 ¶
func (o OptMechanism) Or(d Mechanism) Mechanism
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptMechanismData) Or(d MechanismData) MechanismData
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptMechanismMeta) Or(d MechanismMeta) MechanismMeta
Or returns value if set, or given parameter if does not.
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 ¶
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) UnmarshalJSON ¶
func (s *OptNSError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptRequest ¶
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) 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 ¶
func (o OptRequestEnv) Or(d RequestEnv) RequestEnv
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptRequestHeaders) Or(d RequestHeaders) RequestHeaders
Or returns value if set, or given parameter if does not.
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 ¶
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) UnmarshalJSON ¶
func (s *OptSdkInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSignal ¶
OptSignal is optional Signal.
func NewOptSignal ¶
NewOptSignal returns new OptSignal with value set to v.
func (OptSignal) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptSignal) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSpanData ¶
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) UnmarshalJSON ¶
func (s *OptSpanData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSpanID ¶
OptSpanID is optional SpanID.
func NewOptSpanID ¶
NewOptSpanID returns new OptSpanID with value set to v.
func (OptSpanID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptSpanID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSpanTags ¶
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) 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 ¶
func (o OptStacktrace) Or(d Stacktrace) Stacktrace
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptStacktraceRegisters) Get() (v StacktraceRegisters, ok bool)
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 ¶
func (o OptStacktraceRegisters) Or(d StacktraceRegisters) StacktraceRegisters
Or returns value if set, or given parameter if does not.
func (*OptStacktraceRegisters) SetTo ¶
func (o *OptStacktraceRegisters) SetTo(v StacktraceRegisters)
SetTo sets value to v.
func (*OptStacktraceRegisters) UnmarshalJSON ¶
func (s *OptStacktraceRegisters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
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 ¶
func (o OptThreadHeldLocks) Or(d ThreadHeldLocks) ThreadHeldLocks
Or returns value if set, or given parameter if does not.
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 ¶
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 ¶
func (o OptTimestamp) Or(d Timestamp) Timestamp
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptTransactionInfo) Or(d TransactionInfo) TransactionInfo
Or returns value if set, or given parameter if does not.
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 ¶
OptUser is optional User.
func NewOptUser ¶
NewOptUser returns new OptUser with value set to v.
func (OptUser) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptUser) UnmarshalJSON ¶
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) GetCookies ¶
GetCookies returns the value of Cookies.
func (*Request) GetHeaders ¶
func (s *Request) GetHeaders() OptRequestHeaders
GetHeaders returns the value of Headers.
func (*Request) GetQueryString ¶
GetQueryString returns the value of QueryString.
func (*Request) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Request) SetCookies ¶
SetCookies sets the value of Cookies.
func (*Request) SetHeaders ¶
func (s *Request) SetHeaders(val OptRequestHeaders)
SetHeaders sets the value of Headers.
func (*Request) SetQueryString ¶
SetQueryString sets the value of QueryString.
func (*Request) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type RequestEnv ¶
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 ¶
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) OperationID ¶
OperationID returns OpenAPI operationId.
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) GetIntegrations ¶
GetIntegrations returns the value of Integrations.
func (*SdkInfo) GetPackages ¶
func (s *SdkInfo) GetPackages() []SdkPackage
GetPackages returns the value of Packages.
func (*SdkInfo) GetVersion ¶
GetVersion returns the value of Version.
func (*SdkInfo) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SdkInfo) SetIntegrations ¶
SetIntegrations sets the value of Integrations.
func (*SdkInfo) SetPackages ¶
func (s *SdkInfo) SetPackages(val []SdkPackage)
SetPackages sets the value of Packages.
func (*SdkInfo) SetVersion ¶
SetVersion sets the value of Version.
func (*SdkInfo) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SdkPackage ¶
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.
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) GetCodeName ¶
GetCodeName returns the value of CodeName.
func (*Signal) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Signal) SetCodeName ¶
SetCodeName sets the value of CodeName.
func (*Signal) UnmarshalJSON ¶
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) GetDescription ¶
GetDescription returns the value of Description.
func (*Span) GetParentSpanID ¶
GetParentSpanID returns the value of ParentSpanID.
func (*Span) GetStartTimestamp ¶
GetStartTimestamp returns the value of StartTimestamp.
func (*Span) GetTimestamp ¶
GetTimestamp returns the value of Timestamp.
func (*Span) GetTraceID ¶
GetTraceID returns the value of TraceID.
func (*Span) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Span) SetDescription ¶
SetDescription sets the value of Description.
func (*Span) SetParentSpanID ¶
SetParentSpanID sets the value of ParentSpanID.
func (*Span) SetStartTimestamp ¶
SetStartTimestamp sets the value of StartTimestamp.
func (*Span) SetTimestamp ¶
SetTimestamp sets the value of Timestamp.
func (*Span) SetTraceID ¶
SetTraceID sets the value of TraceID.
func (*Span) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SpanData ¶
func (SpanData) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SpanData) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SpanID ¶
type SpanID string
func (SpanID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SpanID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SpanTags ¶
func (SpanTags) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SpanTags) UnmarshalJSON ¶
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 ¶
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) GetCrashed ¶
GetCrashed returns the value of Crashed.
func (*Thread) GetCurrent ¶
GetCurrent returns the value of Current.
func (*Thread) GetHeldLocks ¶
func (s *Thread) GetHeldLocks() OptThreadHeldLocks
GetHeldLocks returns the value of HeldLocks.
func (*Thread) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Thread) SetCrashed ¶
SetCrashed sets the value of Crashed.
func (*Thread) SetCurrent ¶
SetCurrent sets the value of Current.
func (*Thread) SetHeldLocks ¶
func (s *Thread) SetHeldLocks(val OptThreadHeldLocks)
SetHeldLocks sets the value of HeldLocks.
func (*Thread) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ThreadHeldLocks ¶
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 ¶
func (Timestamp) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TraceID ¶
type TraceID string
func (TraceID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*TraceID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 ¶
func (UnimplementedHandler) Envelope(ctx context.Context, req *EnvelopeReqWithContentType) error
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) GetAdditionalProps ¶
func (s *User) GetAdditionalProps() UserAdditional
GetAdditionalProps returns the value of AdditionalProps.
func (*User) GetIPAddress ¶
GetIPAddress returns the value of IPAddress.
func (*User) GetSegment ¶
GetSegment returns the value of Segment.
func (*User) GetUsername ¶
GetUsername returns the value of Username.
func (*User) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*User) SetAdditionalProps ¶
func (s *User) SetAdditionalProps(val UserAdditional)
SetAdditionalProps sets the value of AdditionalProps.
func (*User) SetIPAddress ¶
SetIPAddress sets the value of IPAddress.
func (*User) SetSegment ¶
SetSegment sets the value of Segment.
func (*User) SetUsername ¶
SetUsername sets the value of Username.
func (*User) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UserAdditional ¶
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.
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_servers_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go