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

model

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

View Source
const NatsMsgId = "Nats-Msg-Id"
View Source
const PUBLISH_FAILURE = "FAILURE"
View Source
const PUBLISH_SUCCESS = "SUCCESS"

Variables

This section is empty.

Functions

This section is empty.

Types

type LogsConfig

type LogsConfig struct {
	DefaultLogTimeLimit int64 `env:"DEFAULT_LOG_TIME_LIMIT" envDefault:"1"`
}

type PanicEventIdentifier

type PanicEventIdentifier struct {
	Topic     string `json:"topic"`
	Data      string `json:"data"`
	PanicInfo string `json:"panicInfo"`
}

PanicEventIdentifier is used to describe panic info

type PubSubMsg

type PubSubMsg struct {
	Data            string
	MsgDeliverCount uint64
	MsgId           string
}

type PublishPanicEvent

type PublishPanicEvent struct {
	Topic   string               `json:"topic"`   // PANIC_ON_PROCESSING_TOPIC
	Payload PanicEventIdentifier `json:"payload"` // Panic Info structure
}

PublishPanicEvent is used for PANIC_ON_PROCESSING_TOPIC payload

Jump to

Keyboard shortcuts

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