Documentation ¶
Index ¶
- Constants
- func AddLogTee(newDst *os.File)
- func AreActionsSliceEqual(a, b []Action) bool
- func AreEventsEqual(a, b *Event) bool
- func AreEventsSliceEqual(a, b []Event) bool
- func AreTracesEqual(a, b *SingleTrace) bool
- func ExecReq(rw ReaderWriter, req, rsp proto.Message) error
- func InitLog(path string)
- func Log(format string, v ...interface{})
- func Panic(format string, v ...interface{})
- func RecvMsg(rw ReaderWriter, msg proto.Message) error
- func SendMsg(rw ReaderWriter, msg proto.Message) error
- type Action
- type Config
- type EAParam
- type Event
- type Event_JavaSpecific
- type Event_JavaSpecific_Param
- type Event_JavaSpecific_StackTraceElement
- type Fault
- type Reader
- type ReaderWriter
- type SingleTrace
- type TransitionEntity
- type Writer
Constants ¶
View Source
const ( LOGLEVEL_INFO logLevel = 1 LOGLEVEL_DBG logLevel = 2 )
Variables ¶
This section is empty.
Functions ¶
func AreActionsSliceEqual ¶
func AreEventsEqual ¶
func AreEventsSliceEqual ¶
func AreTracesEqual ¶
func AreTracesEqual(a, b *SingleTrace) bool
Types ¶
type Action ¶
type Action struct { EntityId string ActionId string // used by MongoDB and so on. expected to compliant with RFC 4122 UUID string format ActionType string // e.g., "Accept", "_JSON" ActionParam EAParam OrchestratorLocal bool // if true, the action will not be propagated to inspectors. this field exists mainly for syslog events. Evt *Event Fault *Fault }
type Config ¶
func ParseConfigFile ¶
TODO: support env vars for overriding (https://github.com/spf13/viper#working-with-environment-variables) TODO: validate config with JSON schema
func (*Config) DumpToJsonFile ¶
type EAParam ¶
type EAParam map[string]interface{}
TODO: use viper, which enables aliasing for keeping compatibility
func NewEAParam ¶
func NewEAParam() EAParam
type Event ¶
type Event struct { ArrivedTime time.Time EntityId string EventId string // used by MongoDB and so on. expected to compliant with RFC 4122 UUID string format EventType string // e.g., "FuncCall", "_JSON" EventParam EAParam Deferred bool // Function Calls and Packets are deferred, however syslogs are not deferred JavaSpecific *Event_JavaSpecific }
func EventFromJSONMap ¶
func (*Event) MakeAcceptAction ¶
type Event_JavaSpecific ¶
type Event_JavaSpecific struct { ThreadName string NrStackTraceElements int StackTraceElements []Event_JavaSpecific_StackTraceElement NrParams int Params []Event_JavaSpecific_Param }
type ReaderWriter ¶
type SingleTrace ¶
type SingleTrace struct {
ActionSequence []Action // NOTE: Action holds the corresponding Evt
}
type TransitionEntity ¶
Click to show internal directories.
Click to hide internal directories.