Documentation ¶
Index ¶
- Variables
- func EncodeAnyByteArray(s []byte) json.RawMessage
- type Action
- type AppendFile
- func (action *AppendFile) GetActionIndex() int
- func (action *AppendFile) GetActionType() string
- func (action *AppendFile) GetOccurredAt() int64
- func (appendFile *AppendFile) MarshalJSON() ([]byte, error)
- func (action *AppendFile) SetActionIndex(actionIndex int)
- func (action *AppendFile) SetActionType(actionType string)
- func (action *AppendFile) SetOccurredAt(occurredAt int64)
- type CallFromInbound
- func (action *CallFromInbound) GetActionIndex() int
- func (action *CallFromInbound) GetActionType() string
- func (action *CallFromInbound) GetOccurredAt() int64
- func (callFromInbound *CallFromInbound) MarshalJSON() ([]byte, error)
- func (action *CallFromInbound) SetActionIndex(actionIndex int)
- func (action *CallFromInbound) SetActionType(actionType string)
- func (action *CallFromInbound) SetOccurredAt(occurredAt int64)
- type CallOutbound
- func (action *CallOutbound) GetActionIndex() int
- func (action *CallOutbound) GetActionType() string
- func (action *CallOutbound) GetOccurredAt() int64
- func (callOutbound *CallOutbound) MarshalJSON() ([]byte, error)
- func (action *CallOutbound) SetActionIndex(actionIndex int)
- func (action *CallOutbound) SetActionType(actionType string)
- func (callOutbound *CallOutbound) SetIgnoreFlag(flag bool)
- func (action *CallOutbound) SetOccurredAt(occurredAt int64)
- type ID
- func (id ID) Counter() int32
- func (id ID) Machine() []byte
- func (id ID) MarshalText() ([]byte, error)
- func (id ID) Pid() uint16
- func (id *ID) Scan(value interface{}) (err error)
- func (id ID) String() string
- func (id ID) Time() time.Time
- func (id *ID) UnmarshalText(text []byte) error
- func (id ID) Value() (driver.Value, error)
- type ReadStorage
- func (action *ReadStorage) GetActionIndex() int
- func (action *ReadStorage) GetActionType() string
- func (action *ReadStorage) GetOccurredAt() int64
- func (readStorage *ReadStorage) MarshalJSON() ([]byte, error)
- func (action *ReadStorage) SetActionIndex(actionIndex int)
- func (action *ReadStorage) SetActionType(actionType string)
- func (action *ReadStorage) SetOccurredAt(occurredAt int64)
- type ReturnInbound
- func (action *ReturnInbound) GetActionIndex() int
- func (action *ReturnInbound) GetActionType() string
- func (action *ReturnInbound) GetOccurredAt() int64
- func (returnInbound *ReturnInbound) MarshalJSON() ([]byte, error)
- func (action *ReturnInbound) SetActionIndex(actionIndex int)
- func (action *ReturnInbound) SetActionType(actionType string)
- func (action *ReturnInbound) SetOccurredAt(occurredAt int64)
- type SendUDP
- func (action *SendUDP) GetActionIndex() int
- func (action *SendUDP) GetActionType() string
- func (action *SendUDP) GetOccurredAt() int64
- func (sendUDP *SendUDP) MarshalJSON() ([]byte, error)
- func (action *SendUDP) SetActionIndex(actionIndex int)
- func (action *SendUDP) SetActionType(actionType string)
- func (action *SendUDP) SetOccurredAt(occurredAt int64)
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidID = errors.New("xid: invalid ID")
ErrInvalidID is returned when trying to unmarshal an invalid ID
Functions ¶
func EncodeAnyByteArray ¶
func EncodeAnyByteArray(s []byte) json.RawMessage
Types ¶
type AppendFile ¶
func (*AppendFile) GetActionIndex ¶
func (action *AppendFile) GetActionIndex() int
func (*AppendFile) GetActionType ¶
func (action *AppendFile) GetActionType() string
func (*AppendFile) GetOccurredAt ¶
func (action *AppendFile) GetOccurredAt() int64
func (*AppendFile) MarshalJSON ¶
func (appendFile *AppendFile) MarshalJSON() ([]byte, error)
func (*AppendFile) SetActionIndex ¶
func (action *AppendFile) SetActionIndex(actionIndex int)
func (*AppendFile) SetActionType ¶
func (action *AppendFile) SetActionType(actionType string)
func (*AppendFile) SetOccurredAt ¶
func (action *AppendFile) SetOccurredAt(occurredAt int64)
type CallFromInbound ¶
type CallFromInbound struct { Peer net.TCPAddr Request []byte // depends on Raw, http | http Raw []byte // decides Request, fastcgi | http UnixAddr net.UnixAddr // contains filtered or unexported fields }
func (*CallFromInbound) GetActionIndex ¶
func (action *CallFromInbound) GetActionIndex() int
func (*CallFromInbound) GetActionType ¶
func (action *CallFromInbound) GetActionType() string
func (*CallFromInbound) GetOccurredAt ¶
func (action *CallFromInbound) GetOccurredAt() int64
func (*CallFromInbound) MarshalJSON ¶
func (callFromInbound *CallFromInbound) MarshalJSON() ([]byte, error)
func (*CallFromInbound) SetActionIndex ¶
func (action *CallFromInbound) SetActionIndex(actionIndex int)
func (*CallFromInbound) SetActionType ¶
func (action *CallFromInbound) SetActionType(actionType string)
func (*CallFromInbound) SetOccurredAt ¶
func (action *CallFromInbound) SetOccurredAt(occurredAt int64)
type CallOutbound ¶
type CallOutbound struct { SocketFD int Peer net.TCPAddr Local *net.TCPAddr `json:"-"` Request []byte ResponseTime int64 Response []byte UnixAddr net.UnixAddr CSpanId []byte IgnoreFlag bool // contains filtered or unexported fields }
func (*CallOutbound) GetActionIndex ¶
func (action *CallOutbound) GetActionIndex() int
func (*CallOutbound) GetActionType ¶
func (action *CallOutbound) GetActionType() string
func (*CallOutbound) GetOccurredAt ¶
func (action *CallOutbound) GetOccurredAt() int64
func (*CallOutbound) MarshalJSON ¶
func (callOutbound *CallOutbound) MarshalJSON() ([]byte, error)
func (*CallOutbound) SetActionIndex ¶
func (action *CallOutbound) SetActionIndex(actionIndex int)
func (*CallOutbound) SetActionType ¶
func (action *CallOutbound) SetActionType(actionType string)
func (*CallOutbound) SetIgnoreFlag ¶
func (callOutbound *CallOutbound) SetIgnoreFlag(flag bool)
func (*CallOutbound) SetOccurredAt ¶
func (action *CallOutbound) SetOccurredAt(occurredAt int64)
type ID ¶
type ID [rawLen]byte
ID represents a unique request id
func FromString ¶
FromString reads an ID from its string representation
func (ID) Counter ¶
Counter returns the incrementing value part of the id. It's a runtime error to call this method with an invalid id.
func (ID) Machine ¶
Machine returns the 3-byte machine id part of the id. It's a runtime error to call this method with an invalid id.
func (ID) MarshalText ¶
MarshalText implements encoding/text TextMarshaler interface
func (ID) Pid ¶
Pid returns the process id part of the id. It's a runtime error to call this method with an invalid id.
func (ID) String ¶
String returns a base32 hex lowercased with no padding representation of the id (char set is 0-9, a-v).
func (ID) Time ¶
Time returns the timestamp part of the id. It's a runtime error to call this method with an invalid id.
func (*ID) UnmarshalText ¶
UnmarshalText implements encoding/text TextUnmarshaler interface
type ReadStorage ¶
type ReadStorage struct { Content []byte // contains filtered or unexported fields }
func (*ReadStorage) GetActionIndex ¶
func (action *ReadStorage) GetActionIndex() int
func (*ReadStorage) GetActionType ¶
func (action *ReadStorage) GetActionType() string
func (*ReadStorage) GetOccurredAt ¶
func (action *ReadStorage) GetOccurredAt() int64
func (*ReadStorage) MarshalJSON ¶
func (readStorage *ReadStorage) MarshalJSON() ([]byte, error)
func (*ReadStorage) SetActionIndex ¶
func (action *ReadStorage) SetActionIndex(actionIndex int)
func (*ReadStorage) SetActionType ¶
func (action *ReadStorage) SetActionType(actionType string)
func (*ReadStorage) SetOccurredAt ¶
func (action *ReadStorage) SetOccurredAt(occurredAt int64)
type ReturnInbound ¶
type ReturnInbound struct { Response []byte // http format Raw []byte // fastcgi format // contains filtered or unexported fields }
func (*ReturnInbound) GetActionIndex ¶
func (action *ReturnInbound) GetActionIndex() int
func (*ReturnInbound) GetActionType ¶
func (action *ReturnInbound) GetActionType() string
func (*ReturnInbound) GetOccurredAt ¶
func (action *ReturnInbound) GetOccurredAt() int64
func (*ReturnInbound) MarshalJSON ¶
func (returnInbound *ReturnInbound) MarshalJSON() ([]byte, error)
func (*ReturnInbound) SetActionIndex ¶
func (action *ReturnInbound) SetActionIndex(actionIndex int)
func (*ReturnInbound) SetActionType ¶
func (action *ReturnInbound) SetActionType(actionType string)
func (*ReturnInbound) SetOccurredAt ¶
func (action *ReturnInbound) SetOccurredAt(occurredAt int64)
type SendUDP ¶
func (*SendUDP) GetActionIndex ¶
func (action *SendUDP) GetActionIndex() int
func (*SendUDP) GetActionType ¶
func (action *SendUDP) GetActionType() string
func (*SendUDP) GetOccurredAt ¶
func (action *SendUDP) GetOccurredAt() int64
func (*SendUDP) MarshalJSON ¶
func (*SendUDP) SetActionIndex ¶
func (action *SendUDP) SetActionIndex(actionIndex int)
func (*SendUDP) SetActionType ¶
func (action *SendUDP) SetActionType(actionType string)
func (*SendUDP) SetOccurredAt ¶
func (action *SendUDP) SetOccurredAt(occurredAt int64)