report

package
v0.0.0-...-7febb3a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Fingerprint   string `json:"fingerprint,omitempty"`
	OriginHost    string `json:"origin_host,omitempty" `
	OriginEnv     string `json:"origin_env,omitempty"`
	Messages      int64  `json:"messages,omitempty"`
	Volume        int64  `json:"volume,omitempty"`
	UpdateCounter int64  `json:"update_counter,omitempty"`
	StartCounter  int64  `json:"start_counter,omitempty"`
	Version       string `json:"version,omitempty"`
}

func NewReport

func NewReport() *Report

func (*Report) SetFingerprint

func (t *Report) SetFingerprint(value string) *Report

func (*Report) SetMessages

func (t *Report) SetMessages(value int64) *Report

func (*Report) SetOriginEnv

func (t *Report) SetOriginEnv(value string) *Report

func (*Report) SetOriginHost

func (t *Report) SetOriginHost(value string) *Report

func (*Report) SetStartCounter

func (t *Report) SetStartCounter(value int64) *Report

func (*Report) SetUpdateCounter

func (t *Report) SetUpdateCounter(value int64) *Report

func (*Report) SetVersion

func (t *Report) SetVersion(value string) *Report

func (*Report) SetVolume

func (t *Report) SetVolume(value int64) *Report

type Service

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

func NewService

func NewService() *Service

func (*Service) Init

func (s *Service) Init(ctx context.Context) error

type Signature

type Signature struct {
	Host        string
	Fingerprint string
	Env         string
}

func CreateSignature

func CreateSignature() (*Signature, error)

Jump to

Keyboard shortcuts

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