tail

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptVersion

type ScriptVersion struct {
	Id      string `json:"id,omitempty"`
	Tag     string `json:"tag,omitempty"`
	Message string `json:"message,omitempty"`
}

func (ScriptVersion) MarshalEasyJSON

func (v ScriptVersion) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*ScriptVersion) UnmarshalEasyJSON

func (v *ScriptVersion) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceDiagnosticeChannelEvent

type TraceDiagnosticeChannelEvent struct {
	Timestamp int64  `json:"timestamp,omitempty"`
	Channel   string `json:"channel,omitempty"`
	Message   string `json:"message,omitempty"`
}

func (TraceDiagnosticeChannelEvent) MarshalEasyJSON

func (v TraceDiagnosticeChannelEvent) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceDiagnosticeChannelEvent) UnmarshalEasyJSON

func (v *TraceDiagnosticeChannelEvent) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceException

type TraceException struct {
	Timestamp int64  `json:"timestamp,omitempty"`
	Message   string `json:"message,omitempty"`
	Name      string `json:"name,omitempty"`
	Stack     string `json:"stack,omitempty"`
}

func (TraceException) MarshalEasyJSON

func (v TraceException) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceException) UnmarshalEasyJSON

func (v *TraceException) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceItem

type TraceItem struct {
	ScriptName               string                         `json:"scriptName"`
	Entrypoint               string                         `json:"entrypoint,omitempty"`
	Event                    *TraceItemEvent                `json:"event,omitempty"`
	EventTimeStamp           int64                          `json:"eventTimestamp,omitempty"`
	Logs                     []TraceLog                     `json:"logs"`
	Exceptions               []TraceException               `json:"exceptions"`
	DiagnosticsChannelEvents []TraceDiagnosticeChannelEvent `json:"diagnosticsChannelEvents"`
	Outcome                  string                         `json:"outcome,omitempty"`
	Truncated                bool                           `json:"truncated"`
	CpuTime                  int64                          `json:"cpuTime"`
	WallTime                 int64                          `json:"wallTime"`
	ExecutionModel           string                         `json:"executionModel,omitempty"`
	ScriptTags               []string                       `json:"scriptTags,omitempty"`
	DispatchNamespace        string                         `json:"dispatchNamespace,omitempty"`
	ScriptVersion            *ScriptVersion                 `json:"scriptVersion,omitempty"`
}

func (TraceItem) MarshalEasyJSON

func (v TraceItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceItem) UnmarshalEasyJSON

func (v *TraceItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceItemEvent

type TraceItemEvent struct {
	Type string `json:"-"`
	//rpc
	RpcMethod string `json:"rpcMethod,omitempty"`
	//email
	MailFrom string `json:"mailFrom,omitempty"`
	RcptTo   string `json:"rcptTo,omitempty"`
	RawSize  int    `json:"rawSize,omitempty"`
	//queue
	Queue     string `json:"queue,omitempty"`
	BatchSize int    `json:"batchSize,omitempty"`
	// cron and alarm
	ScheduledTime int64 `json:"scheduledTime,omitempty"`
	// cron
	Cron string `json:"cron,omitempty"`
	// tail
	ConsumedEvents *[]TraceItemTailEventInfoTailItem `json:"consumedEvents,omitempty"`
	// fetch
	Response *TraceItemFetchEventInfoResponse `json:"response,omitempty"`
	Request  *TraceItemFetchEventInfoRequest  `json:"request,omitempty"`
	// websocket
	GetWebSocketEvent *TraceItemGetWebSocketEvent `json:"getWebSocketEvent,omitempty"`
}

func (TraceItemEvent) MarshalEasyJSON

func (v TraceItemEvent) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceItemEvent) UnmarshalEasyJSON

func (v *TraceItemEvent) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceItemFetchEventInfoRequest

type TraceItemFetchEventInfoRequest struct {
	Cf      map[string]any    `json:"cf,omitempty"`
	Headers map[string]string `json:"headers,omitempty"`
	Method  string            `json:"method,omitempty"`
	Url     string            `json:"url,omitempty"`
}

func (TraceItemFetchEventInfoRequest) MarshalEasyJSON

func (v TraceItemFetchEventInfoRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceItemFetchEventInfoRequest) UnmarshalEasyJSON

func (v *TraceItemFetchEventInfoRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceItemFetchEventInfoResponse

type TraceItemFetchEventInfoResponse struct {
	Status int `json:"status,omitempty"`
}

func (TraceItemFetchEventInfoResponse) MarshalEasyJSON

func (v TraceItemFetchEventInfoResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceItemFetchEventInfoResponse) UnmarshalEasyJSON

func (v *TraceItemFetchEventInfoResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceItemGetWebSocketEvent

type TraceItemGetWebSocketEvent struct {
	WebSocketEventType string `json:"webSocketEventType,omitempty"`
	Code               int    `json:"code,omitempty"`
	WasClean           bool   `json:"wasClean,omitempty"`
}

func (TraceItemGetWebSocketEvent) MarshalEasyJSON

func (v TraceItemGetWebSocketEvent) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceItemGetWebSocketEvent) UnmarshalEasyJSON

func (v *TraceItemGetWebSocketEvent) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceItemTailEventInfoTailItem

type TraceItemTailEventInfoTailItem struct {
	ScriptName string `json:"scriptName,omitempty"`
}

func (TraceItemTailEventInfoTailItem) MarshalEasyJSON

func (v TraceItemTailEventInfoTailItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceItemTailEventInfoTailItem) UnmarshalEasyJSON

func (v *TraceItemTailEventInfoTailItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type TraceLog

type TraceLog struct {
	Timestamp int64  `json:"timestamp,omitempty"`
	Level     string `json:"level,omitempty"`
	Message   []any  `json:"message"`
}

func (TraceLog) MarshalEasyJSON

func (v TraceLog) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*TraceLog) UnmarshalEasyJSON

func (v *TraceLog) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type Traces

type Traces []TraceItem

func (Traces) MarshalEasyJSON

func (v Traces) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*Traces) UnmarshalEasyJSON

func (v *Traces) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

Jump to

Keyboard shortcuts

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