Help us shape the future of Go! Take the 2026 Go Developer Survey

status

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	StatusCode int
}

func (HTTPError) Error

func (e HTTPError) Error() string

type Status

type Status struct {
	Code     string          `json:"code,omitempty"`
	Message  string          `json:"message,omitempty"`
	HTTPCode json.Number     `json:"http_code,omitempty"`
	Metrics  metrics.Metrics `json:"metrics,omitempty"`
}

Status represents the status of processing a decision log.

func (*Status) Equal

func (s *Status) Equal(other *Status) bool

func (*Status) SetError

func (s *Status) SetError(err error)

SetError updates the status object to reflect a failure to upload or process a log. If err is nil, the error status is cleared.

Jump to

Keyboard shortcuts

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