logs

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogHash

func LogHash(md MsgData, userId repos.ID, sid string) string

func LogSubsId

func LogSubsId(md MsgData, logStreamName string) string

func ParseSince

func ParseSince(since *string) (*time.Time, error)

Types

type Event

type Event string
const (
	EventSubscribe   Event = "subscribe"
	EventUnsubscribe Event = "unsubscribe"
)

type LogsSubs

type LogsSubs struct {
	Jc       *msg_nats.JetstreamConsumer
	Id       string
	Resource MsgData
}

type LogsSubsMap

type LogsSubsMap map[string]LogsSubs

type Message

type Message struct {
	Event Event   `json:"event"`
	Spec  MsgData `json:"spec"`
	Id    string  `json:"id"`
}

type MsgData

type MsgData struct {
	Account       string  `json:"account"`
	Cluster       string  `json:"cluster"`
	TrackingId    string  `json:"trackingId"`
	Since         *string `json:"since,omitempty"`
	RecordVersion *int    `json:"recordVersion"`
}

type Response

type Response struct {
	Message       string    `json:"message"`
	Timestamp     time.Time `json:"timestamp"`
	PodName       string    `json:"podName"`
	ContainerName string    `json:"containerName"`
}

Jump to

Keyboard shortcuts

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