go-agent: github.com/sqreen/go-agent/agent/internal/backend/api Index | Files

package api

import "github.com/sqreen/go-agent/agent/internal/backend/api"

Index

Package Files

api.go jsonpb.go

Constants

const (
    CustomErrorPageType = "custom_error_page"
    RedirectionType     = "redirection"
    WAFType             = "waf"
)

Variables

var RequestRecordVersion = "20171208"

func LexicographicalOrderJSONMarshal Uses

func LexicographicalOrderJSONMarshal(o interface{}) ([]byte, error)

func LexicographicalOrderJSONMarshalMap Uses

func LexicographicalOrderJSONMarshalMap(o map[string]interface{}) ([]byte, error)

type ActionsPackResponse Uses

type ActionsPackResponse struct {
    Actions []ActionsPackResponse_Action `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions"`
}

type ActionsPackResponse_Action Uses

type ActionsPackResponse_Action struct {
    ActionId     string                            `protobuf:"bytes,1,opt,name=action_id,json=actionId,proto3" json:"action_id"`
    Action       string                            `protobuf:"bytes,2,opt,name=action,proto3" json:"action"`
    Duration     float64                           `json:"duration"`
    SendResponse bool                              `protobuf:"varint,4,opt,name=send_response,json=sendResponse,proto3" json:"send_response"`
    Parameters   ActionsPackResponse_Action_Params `protobuf:"bytes,5,opt,name=parameters,proto3" json:"parameters"`
}

type ActionsPackResponse_Action_Params Uses

type ActionsPackResponse_Action_Params struct {
    Url    string              `protobuf:"bytes,1,opt,name=url,proto3" json:"url"`
    Users  []map[string]string `proto3" json:"users"`
    IpCidr []string            `protobuf:"bytes,3,rep,name=ip_cidr,json=ipCidr,proto3" json:"ip_cidr"`
}

type AppBeatRequest Uses

type AppBeatRequest struct {
    CommandResults map[string]CommandResult `json:"command_results,omitempty"`
    Metrics        []MetricResponse         `json:"metrics,omitempty"`
}

func NewAppBeatRequestFromFace Uses

func NewAppBeatRequestFromFace(that AppBeatRequestFace) *AppBeatRequest

type AppBeatRequestFace Uses

type AppBeatRequestFace interface {
    GetCommandResults() map[string]CommandResult
    GetMetrics() []MetricResponse
}

type AppBeatResponse Uses

type AppBeatResponse struct {
    Commands []CommandRequest `json:"commands,omitempty"`
    Status   bool             `json:"status"`
}

func NewAppBeatResponseFromFace Uses

func NewAppBeatResponseFromFace(that AppBeatResponseFace) *AppBeatResponse

type AppBeatResponseFace Uses

type AppBeatResponseFace interface {
    GetCommands() []CommandRequest
    GetStatus() bool
}

type AppLoginRequest Uses

type AppLoginRequest struct {
    BundleSignature  string                       `protobuf:"bytes,1,opt,name=bundle_signature,json=bundleSignature,proto3" json:"bundle_signature"`
    VariousInfos     AppLoginRequest_VariousInfos `protobuf:"bytes,2,opt,name=various_infos,json=variousInfos,proto3" json:"various_infos"`
    AgentType        string                       `protobuf:"bytes,3,opt,name=agent_type,json=agentType,proto3" json:"agent_type"`
    AgentVersion     string                       `protobuf:"bytes,4,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version"`
    OsType           string                       `protobuf:"bytes,5,opt,name=os_type,json=osType,proto3" json:"os_type"`
    Hostname         string                       `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname"`
    RuntimeType      string                       `protobuf:"bytes,7,opt,name=runtime_type,json=runtimeType,proto3" json:"runtime_type"`
    RuntimeVersion   string                       `protobuf:"bytes,8,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version"`
    FrameworkType    string                       `protobuf:"bytes,9,opt,name=framework_type,json=frameworkType,proto3" json:"framework_type"`
    FrameworkVersion string                       `protobuf:"bytes,10,opt,name=framework_version,json=frameworkVersion,proto3" json:"framework_version"`
    Environment      string                       `protobuf:"bytes,11,opt,name=environment,proto3" json:"environment"`
}

func NewAppLoginRequestFromFace Uses

func NewAppLoginRequestFromFace(that AppLoginRequestFace) *AppLoginRequest

type AppLoginRequestFace Uses

type AppLoginRequestFace interface {
    GetBundleSignature() string
    GetVariousInfos() AppLoginRequest_VariousInfos
    GetAgentType() string
    GetAgentVersion() string
    GetOsType() string
    GetHostname() string
    GetRuntimeType() string
    GetRuntimeVersion() string
    GetFrameworkType() string
    GetFrameworkVersion() string
    GetEnvironment() string
}

type AppLoginRequest_VariousInfos Uses

type AppLoginRequest_VariousInfos struct {
    Time             time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"`
    Pid              uint32    `protobuf:"varint,3,opt,name=pid,proto3" json:"pid"`
    Ppid             uint32    `protobuf:"varint,4,opt,name=ppid,proto3" json:"ppid"`
    Euid             uint32    `protobuf:"varint,5,opt,name=euid,proto3" json:"euid"`
    Egid             uint32    `protobuf:"varint,6,opt,name=egid,proto3" json:"egid"`
    Uid              uint32    `protobuf:"varint,7,opt,name=uid,proto3" json:"uid"`
    Gid              uint32    `protobuf:"varint,8,opt,name=gid,proto3" json:"gid"`
    Name             string    `protobuf:"bytes,9,opt,name=name,proto3" json:"name"`
    LibSqreenVersion *string   `json:"libsqreen_version"`
}

func NewAppLoginRequest_VariousInfosFromFace Uses

func NewAppLoginRequest_VariousInfosFromFace(that AppLoginRequest_VariousInfosFace) *AppLoginRequest_VariousInfos

type AppLoginRequest_VariousInfosFace Uses

type AppLoginRequest_VariousInfosFace interface {
    GetTime() time.Time
    GetPid() uint32
    GetPpid() uint32
    GetEuid() uint32
    GetEgid() uint32
    GetUid() uint32
    GetGid() uint32
    GetName() string
    GetLibSqreenVersion() *string
}

type AppLoginResponse Uses

type AppLoginResponse struct {
    Error     string                   `json:"error"`
    SessionId string                   `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id"`
    Status    bool                     `protobuf:"varint,2,opt,name=status,proto3" json:"status"`
    Commands  []CommandRequest         `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands"`
    Features  AppLoginResponse_Feature `protobuf:"bytes,4,opt,name=features,proto3" json:"features"`
    PackId    string                   `protobuf:"bytes,5,opt,name=pack_id,json=packId,proto3" json:"pack_id"`
}

func NewAppLoginResponseFromFace Uses

func NewAppLoginResponseFromFace(that AppLoginResponseFace) *AppLoginResponse

type AppLoginResponseFace Uses

type AppLoginResponseFace interface {
    GetSessionId() string
    GetStatus() bool
    GetCommands() []CommandRequest
    GetFeatures() AppLoginResponse_Feature
    GetPackId() string
}

type AppLoginResponse_Feature Uses

type AppLoginResponse_Feature struct {
    BatchSize      uint32 `protobuf:"varint,1,opt,name=batch_size,json=batchSize,proto3" json:"batch_size"`
    MaxStaleness   uint32 `protobuf:"varint,2,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness"`
    HeartbeatDelay uint32 `protobuf:"varint,3,opt,name=heartbeat_delay,json=heartbeatDelay,proto3" json:"heartbeat_delay"`
}

func NewAppLoginResponse_FeatureFromFace Uses

func NewAppLoginResponse_FeatureFromFace(that AppLoginResponse_FeatureFace) *AppLoginResponse_Feature

type AppLoginResponse_FeatureFace Uses

type AppLoginResponse_FeatureFace interface {
    GetBatchSize() uint32
    GetMaxStaleness() uint32
    GetHeartbeatDelay() uint32
}

type BatchRequest Uses

type BatchRequest struct {
    Batch []BatchRequest_Event `json:"batch"`
}

func NewBatchRequestFromFace Uses

func NewBatchRequestFromFace(that BatchRequestFace) *BatchRequest

type BatchRequestFace Uses

type BatchRequestFace interface {
    GetBatch() []BatchRequest_Event
}

type BatchRequest_Event Uses

type BatchRequest_Event struct {
    EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type"`
    Event     Struct `protobuf:"bytes,2,opt,name=event,proto3,customtype=Struct" json:"event"`
}

func NewBatchRequest_EventFromFace Uses

func NewBatchRequest_EventFromFace(that BatchRequest_EventFace) *BatchRequest_Event

func (*BatchRequest_Event) MarshalJSON Uses

func (e *BatchRequest_Event) MarshalJSON() ([]byte, error)

type BatchRequest_EventFace Uses

type BatchRequest_EventFace interface {
    GetEventType() string
    GetEvent() Struct
}

type BlockedIPEventProperties Uses

type BlockedIPEventProperties struct {
    ActionId string                          `protobuf:"bytes,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
    Output   BlockedIPEventProperties_Output `protobuf:"bytes,2,opt,name=output,proto3" json:"output"`
}

func NewBlockedIPEventPropertiesFromFace Uses

func NewBlockedIPEventPropertiesFromFace(that BlockedIPEventPropertiesFace) *BlockedIPEventProperties

type BlockedIPEventPropertiesFace Uses

type BlockedIPEventPropertiesFace interface {
    GetActionId() string
    GetOutput() BlockedIPEventProperties_Output
}

type BlockedIPEventProperties_Output Uses

type BlockedIPEventProperties_Output struct {
    IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
}

func NewBlockedIPEventProperties_OutputFromFace Uses

func NewBlockedIPEventProperties_OutputFromFace(that BlockedIPEventProperties_OutputFace) *BlockedIPEventProperties_Output

type BlockedIPEventProperties_OutputFace Uses

type BlockedIPEventProperties_OutputFace interface {
    GetIpAddress() string
}

type BlockedUserEventProperties Uses

type BlockedUserEventProperties struct {
    ActionId string                           `json:"action_id"`
    Output   BlockedUserEventPropertiesOutput `json:"output"`
}

func NewBlockedUserEventPropertiesFromFace Uses

func NewBlockedUserEventPropertiesFromFace(that BlockedUserEventPropertiesFace) *BlockedUserEventProperties

type BlockedUserEventPropertiesFace Uses

type BlockedUserEventPropertiesFace interface {
    GetActionId() string
    GetOutput() BlockedUserEventPropertiesOutput
}

type BlockedUserEventPropertiesOutput Uses

type BlockedUserEventPropertiesOutput struct {
    User map[string]string `json:"user"`
}

func NewBlockedUserEventPropertiesOutputFromFace Uses

func NewBlockedUserEventPropertiesOutputFromFace(that BlockedUserEventPropertiesOutputFace) *BlockedUserEventPropertiesOutput

type BlockedUserEventPropertiesOutputFace Uses

type BlockedUserEventPropertiesOutputFace interface {
    GetUser() map[string]string
}

type CommandRequest Uses

type CommandRequest struct {
    Name string `json:"name"`
    Uuid string `json:"uuid"`
    // Params: parse and validate the params when used.
    Params []json.RawMessage `json:"params"`
}

type CommandResult Uses

type CommandResult struct {
    Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output"`
    Status bool   `protobuf:"varint,2,opt,name=status,proto3" json:"status"`
}

func NewCommandResultFromFace Uses

func NewCommandResultFromFace(that CommandResultFace) *CommandResult

type CommandResultFace Uses

type CommandResultFace interface {
    GetOutput() string
    GetStatus() bool
}

type CustomErrorPageRuleDataEntry Uses

type CustomErrorPageRuleDataEntry struct {
    StatusCode int `json:"status_code"`
}

type Dependency Uses

type Dependency struct {
    Name     string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
    Version  string             `protobuf:"bytes,2,opt,name=version,proto3" json:"version"`
    Homepage string             `protobuf:"bytes,3,opt,name=homepage,proto3" json:"homepage"`
    Source   *Dependency_Source `protobuf:"bytes,4,opt,name=source,proto3" json:"source"`
}

func NewDependencyFromFace Uses

func NewDependencyFromFace(that DependencyFace) *Dependency

type DependencyFace Uses

type DependencyFace interface {
    GetName() string
    GetVersion() string
    GetHomepage() string
    GetSource() *Dependency_Source
}

type Dependency_Source Uses

type Dependency_Source struct {
    Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
    Remotes []string `protobuf:"bytes,2,rep,name=remotes,proto3" json:"remotes"`
}

func NewDependency_SourceFromFace Uses

func NewDependency_SourceFromFace(that Dependency_SourceFace) *Dependency_Source

type Dependency_SourceFace Uses

type Dependency_SourceFace interface {
    GetName() string
    GetRemotes() []string
}

type ECDSASignature Uses

type ECDSASignature struct {
    Keys  []string `json:"keys"`
    Value string   `json:"value"`
    // Custom field where the signed message is reconstructed out of the list of
    // keys
    Message []byte `json:"-"`
}

type ExceptionContext Uses

type ExceptionContext struct {
    Backtrace []StackFrame `json:"backtrace,omitempty"`
}

func NewExceptionContextFromFace Uses

func NewExceptionContextFromFace(c ExceptionContextFace) *ExceptionContext

type ExceptionContextFace Uses

type ExceptionContextFace interface {
    GetBacktrace() []StackFrame
}

type ExceptionEvent Uses

type ExceptionEvent struct {
    Time        time.Time        `json:"time"`
    Klass       string           `json:"klass"`
    Message     string           `json:"message"`
    RulespackID string           `json:"rulespack_id"`
    Context     ExceptionContext `json:"context"`
    Infos       interface{}      `json:"infos,omitempty"`
}

func NewExceptionEventFromFace Uses

func NewExceptionEventFromFace(e ExceptionEventFace) *ExceptionEvent

func (*ExceptionEvent) GetEvent Uses

func (e *ExceptionEvent) GetEvent() Struct

func (*ExceptionEvent) GetEventType Uses

func (*ExceptionEvent) GetEventType() string

type ExceptionEventFace Uses

type ExceptionEventFace interface {
    GetTime() time.Time
    GetKlass() string
    GetMessage() string
    GetRulespackID() string
    GetContext() ExceptionContext
    GetInfos() interface{}
}

type Hookpoint Uses

type Hookpoint struct {
    Class    string `json:"klass"`
    Method   string `json:"method"`
    Callback string `json:"callback_class"`
}

type ListValue Uses

type ListValue []interface{}

func (ListValue) MarshalJSON Uses

func (l ListValue) MarshalJSON() ([]byte, error)

func (ListValue) Reset Uses

func (l ListValue) Reset()

func (ListValue) String Uses

func (l ListValue) String() string

type MetricDefinition Uses

type MetricDefinition struct {
    Kind   string `json:"kind"`
    Name   string `json:"name"`
    Period int64  `json:"period"`
}

type MetricResponse Uses

type MetricResponse struct {
    Name        string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
    Start       time.Time `protobuf:"bytes,2,opt,name=start,proto3,stdtime" json:"start"`
    Finish      time.Time `protobuf:"bytes,3,opt,name=finish,proto3,stdtime" json:"finish"`
    Observation Struct    `protobuf:"bytes,4,opt,name=observation,proto3,customtype=Struct" json:"observation"`
}

func NewMetricResponseFromFace Uses

func NewMetricResponseFromFace(that MetricResponseFace) *MetricResponse

type MetricResponseFace Uses

type MetricResponseFace interface {
    GetName() string
    GetStart() time.Time
    GetFinish() time.Time
    GetObservation() Struct
}

type RedirectedIPEventProperties Uses

type RedirectedIPEventProperties struct {
    ActionId string                            `json:"action_id,omitempty"`
    Output   RedirectedIPEventPropertiesOutput `json:"output"`
}

func NewRedirectedIPEventPropertiesFromFace Uses

func NewRedirectedIPEventPropertiesFromFace(that RedirectedIPEventPropertiesFace) *RedirectedIPEventProperties

type RedirectedIPEventPropertiesFace Uses

type RedirectedIPEventPropertiesFace interface {
    GetActionId() string
    GetOutput() RedirectedIPEventPropertiesOutput
}

type RedirectedIPEventPropertiesOutput Uses

type RedirectedIPEventPropertiesOutput struct {
    IpAddress string `json:"ip_address"`
    URL       string `json:"url"`
}

func NewRedirectedIPEventPropertiesOutputFromFace Uses

func NewRedirectedIPEventPropertiesOutputFromFace(that RedirectedIPEventPropertiesOutputFace) *RedirectedIPEventPropertiesOutput

type RedirectedIPEventPropertiesOutputFace Uses

type RedirectedIPEventPropertiesOutputFace interface {
    GetIpAddress() string
    GetURL() string
}

type RedirectedUserEventProperties Uses

type RedirectedUserEventProperties struct {
    ActionId string                              `json:"action_id"`
    Output   RedirectedUserEventPropertiesOutput `json:"output"`
}

func NewRedirectedUserEventPropertiesFromFace Uses

func NewRedirectedUserEventPropertiesFromFace(that RedirectedUserEventPropertiesFace) *RedirectedUserEventProperties

type RedirectedUserEventPropertiesFace Uses

type RedirectedUserEventPropertiesFace interface {
    GetActionId() string
    GetOutput() RedirectedUserEventPropertiesOutput
}

type RedirectedUserEventPropertiesOutput Uses

type RedirectedUserEventPropertiesOutput struct {
    User map[string]string `json:"user"`
}

func NewRedirectedUserEventPropertiesOutputFromFace Uses

func NewRedirectedUserEventPropertiesOutputFromFace(that RedirectedUserEventPropertiesOutputFace) *RedirectedUserEventPropertiesOutput

type RedirectedUserEventPropertiesOutputFace Uses

type RedirectedUserEventPropertiesOutputFace interface {
    GetUser() map[string]string
}

type RedirectionRuleDataEntry Uses

type RedirectionRuleDataEntry struct {
    RedirectionURL string `json:"redirection_url"`
}

type RequestRecord Uses

type RequestRecord struct {
    Version     string                 `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
    RulespackId string                 `protobuf:"bytes,2,opt,name=rulespack_id,json=rulespackId,proto3" json:"rulespack_id"`
    ClientIp    string                 `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip"`
    Request     RequestRecord_Request  `protobuf:"bytes,4,opt,name=request,proto3" json:"request"`
    Response    RequestRecord_Response `protobuf:"bytes,5,opt,name=response,proto3" json:"response"`
    Observed    RequestRecord_Observed `protobuf:"bytes,6,opt,name=observed,proto3" json:"observed"`
}

func NewRequestRecordFromFace Uses

func NewRequestRecordFromFace(that RequestRecordFace) *RequestRecord

type RequestRecordEvent Uses

type RequestRecordEvent RequestRecord

func (*RequestRecordEvent) GetEvent Uses

func (e *RequestRecordEvent) GetEvent() Struct

func (*RequestRecordEvent) GetEventType Uses

func (*RequestRecordEvent) GetEventType() string

type RequestRecordFace Uses

type RequestRecordFace interface {
    GetVersion() string
    GetRulespackId() string
    GetClientIp() string
    GetRequest() RequestRecord_Request
    GetResponse() RequestRecord_Response
    GetObserved() RequestRecord_Observed
}

type RequestRecord_Observed Uses

type RequestRecord_Observed struct {
    Attacks          []*RequestRecord_Observed_Attack      `protobuf:"bytes,1,rep,name=attacks,proto3" json:"attacks,omitempty"`
    Sdk              []*RequestRecord_Observed_SDKEvent    `protobuf:"bytes,2,rep,name=sdk,proto3" json:"sdk,omitempty"`
    SqreenExceptions []*RequestRecord_Observed_Exception   `protobuf:"bytes,3,rep,name=sqreen_exceptions,json=sqreenExceptions,proto3" json:"sqreen_exceptions,omitempty"`
    Observations     []*RequestRecord_Observed_Observation `protobuf:"bytes,4,rep,name=observations,proto3" json:"observations,omitempty"`
    DataPoints       []*RequestRecord_Observed_DataPoint   `protobuf:"bytes,5,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
}

func NewRequestRecord_ObservedFromFace Uses

func NewRequestRecord_ObservedFromFace(that RequestRecord_ObservedFace) *RequestRecord_Observed

type RequestRecord_ObservedFace Uses

type RequestRecord_ObservedFace interface {
    GetAttacks() []*RequestRecord_Observed_Attack
    GetSdk() []*RequestRecord_Observed_SDKEvent
    GetSqreenExceptions() []*RequestRecord_Observed_Exception
    GetObservations() []*RequestRecord_Observed_Observation
    GetDataPoints() []*RequestRecord_Observed_DataPoint
}

type RequestRecord_Observed_Attack Uses

type RequestRecord_Observed_Attack struct {
    RuleName string      `protobuf:"bytes,1,opt,name=rule_name,json=ruleName,proto3" json:"rule_name"`
    Test     bool        `protobuf:"varint,2,opt,name=test,proto3" json:"test"`
    Infos    interface{} `protobuf:"bytes,3,opt,name=infos,proto3" json:"infos"`
    Time     time.Time   `protobuf:"bytes,5,opt,name=time,proto3,stdtime" json:"time"`
    Block    bool        `protobuf:"varint,6,opt,name=block,proto3" json:"block"`
}

func NewRequestRecord_Observed_AttackFromFace Uses

func NewRequestRecord_Observed_AttackFromFace(that RequestRecord_Observed_AttackFace) *RequestRecord_Observed_Attack

type RequestRecord_Observed_AttackFace Uses

type RequestRecord_Observed_AttackFace interface {
    GetRuleName() string
    GetTest() bool
    GetInfo() interface{}
    GetTime() time.Time
    GetBlock() bool
}

type RequestRecord_Observed_DataPoint Uses

type RequestRecord_Observed_DataPoint struct {
    RulespackId string    `protobuf:"bytes,1,opt,name=rulespack_id,json=rulespackId,proto3" json:"rulespack_id"`
    RuleName    string    `protobuf:"bytes,2,opt,name=rule_name,json=ruleName,proto3" json:"rule_name"`
    Time        time.Time `protobuf:"bytes,3,opt,name=time,proto3,stdtime" json:"time"`
    Infos       string    `protobuf:"bytes,4,opt,name=infos,proto3" json:"infos"`
}

func NewRequestRecord_Observed_DataPointFromFace Uses

func NewRequestRecord_Observed_DataPointFromFace(that RequestRecord_Observed_DataPointFace) *RequestRecord_Observed_DataPoint

type RequestRecord_Observed_DataPointFace Uses

type RequestRecord_Observed_DataPointFace interface {
    GetRulespackId() string
    GetRuleName() string
    GetTime() time.Time
    GetInfos() string
}

type RequestRecord_Observed_Exception Uses

type RequestRecord_Observed_Exception struct {
    Message   string    `protobuf:"bytes,1,opt,name=message,proto3" json:"message"`
    Klass     string    `protobuf:"bytes,2,opt,name=klass,proto3" json:"klass"`
    RuleName  string    `protobuf:"bytes,3,opt,name=rule_name,json=ruleName,proto3" json:"rule_name"`
    Test      bool      `protobuf:"varint,4,opt,name=test,proto3" json:"test"`
    Infos     string    `protobuf:"bytes,5,opt,name=infos,proto3" json:"infos"`
    Backtrace []string  `protobuf:"bytes,6,rep,name=backtrace,proto3" json:"backtrace"`
    Time      time.Time `protobuf:"bytes,7,opt,name=time,proto3,stdtime" json:"time"`
}

func NewRequestRecord_Observed_ExceptionFromFace Uses

func NewRequestRecord_Observed_ExceptionFromFace(that RequestRecord_Observed_ExceptionFace) *RequestRecord_Observed_Exception

type RequestRecord_Observed_ExceptionFace Uses

type RequestRecord_Observed_ExceptionFace interface {
    GetMessage() string
    GetKlass() string
    GetRuleName() string
    GetTest() bool
    GetInfos() string
    GetBacktrace() []string
    GetTime() time.Time
}

type RequestRecord_Observed_Observation Uses

type RequestRecord_Observed_Observation struct {
    Category string    `protobuf:"bytes,1,opt,name=category,proto3" json:"category"`
    Key      string    `protobuf:"bytes,2,opt,name=key,proto3" json:"key"`
    Value    string    `protobuf:"bytes,3,opt,name=value,proto3" json:"value"`
    Time     time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"`
}

func NewRequestRecord_Observed_ObservationFromFace Uses

func NewRequestRecord_Observed_ObservationFromFace(that RequestRecord_Observed_ObservationFace) *RequestRecord_Observed_Observation

type RequestRecord_Observed_ObservationFace Uses

type RequestRecord_Observed_ObservationFace interface {
    GetCategory() string
    GetKey() string
    GetValue() string
    GetTime() time.Time
}

type RequestRecord_Observed_SDKEvent Uses

type RequestRecord_Observed_SDKEvent struct {
    Time time.Time                            `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"`
    Name string                               `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
    Args RequestRecord_Observed_SDKEvent_Args `protobuf:"bytes,3,opt,name=args,proto3" json:"args"`
}

func NewRequestRecord_Observed_SDKEventFromFace Uses

func NewRequestRecord_Observed_SDKEventFromFace(that RequestRecord_Observed_SDKEventFace) *RequestRecord_Observed_SDKEvent

type RequestRecord_Observed_SDKEventFace Uses

type RequestRecord_Observed_SDKEventFace interface {
    GetTime() time.Time
    GetName() string
    GetArgs() RequestRecord_Observed_SDKEvent_Args
}

type RequestRecord_Observed_SDKEvent_Args Uses

type RequestRecord_Observed_SDKEvent_Args struct {
    // Types that are valid to be assigned to Args:
    //	*RequestRecord_Observed_SDKEvent_Args_Track_
    //	*RequestRecord_Observed_SDKEvent_Args_Identify_
    Args isRequestRecord_Observed_SDKEvent_Args_Args `protobuf_oneof:"args"`
}

Helper message type to disable the face extension only on it and not in the entire SDKEvent message type. oneof + face is not supported.

func (*RequestRecord_Observed_SDKEvent_Args) MarshalJSON Uses

func (e *RequestRecord_Observed_SDKEvent_Args) MarshalJSON() ([]byte, error)

type RequestRecord_Observed_SDKEvent_Args_Identify Uses

type RequestRecord_Observed_SDKEvent_Args_Identify struct {
    UserIdentifiers *Struct `protobuf:"bytes,1,opt,name=user_identifiers,json=userIdentifiers,proto3,customtype=Struct" json:"user_identifiers"`
}

Serialized into: [ <user_identifiers> ]

func NewRequestRecord_Observed_SDKEvent_Args_IdentifyFromFace Uses

func NewRequestRecord_Observed_SDKEvent_Args_IdentifyFromFace(that RequestRecord_Observed_SDKEvent_Args_IdentifyFace) *RequestRecord_Observed_SDKEvent_Args_Identify

func (*RequestRecord_Observed_SDKEvent_Args_Identify) MarshalJSON Uses

func (identify *RequestRecord_Observed_SDKEvent_Args_Identify) MarshalJSON() ([]byte, error)

type RequestRecord_Observed_SDKEvent_Args_IdentifyFace Uses

type RequestRecord_Observed_SDKEvent_Args_IdentifyFace interface {
    GetUserIdentifiers() *Struct
}

type RequestRecord_Observed_SDKEvent_Args_Identify_ Uses

type RequestRecord_Observed_SDKEvent_Args_Identify_ struct {
    Identify *RequestRecord_Observed_SDKEvent_Args_Identify `protobuf:"bytes,2,opt,name=identify,proto3,oneof"`
}

type RequestRecord_Observed_SDKEvent_Args_Track Uses

type RequestRecord_Observed_SDKEvent_Args_Track struct {
    Event   string                                              `protobuf:"bytes,1,opt,name=event,proto3" json:"event"`
    Options *RequestRecord_Observed_SDKEvent_Args_Track_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options"`
}

Serialized into: [

"<name>",
{
  "user_identifiers": <user_identifiers>,
  "properties": <properties>
}

]

func NewRequestRecord_Observed_SDKEvent_Args_TrackFromFace Uses

func NewRequestRecord_Observed_SDKEvent_Args_TrackFromFace(that RequestRecord_Observed_SDKEvent_Args_TrackFace) *RequestRecord_Observed_SDKEvent_Args_Track

func (*RequestRecord_Observed_SDKEvent_Args_Track) MarshalJSON Uses

func (track *RequestRecord_Observed_SDKEvent_Args_Track) MarshalJSON() ([]byte, error)

type RequestRecord_Observed_SDKEvent_Args_TrackFace Uses

type RequestRecord_Observed_SDKEvent_Args_TrackFace interface {
    GetEvent() string
    GetOptions() *RequestRecord_Observed_SDKEvent_Args_Track_Options
}

type RequestRecord_Observed_SDKEvent_Args_Track_ Uses

type RequestRecord_Observed_SDKEvent_Args_Track_ struct {
    Track *RequestRecord_Observed_SDKEvent_Args_Track `protobuf:"bytes,1,opt,name=track,proto3,oneof"`
}

type RequestRecord_Observed_SDKEvent_Args_Track_Options Uses

type RequestRecord_Observed_SDKEvent_Args_Track_Options struct {
    Properties      *Struct `protobuf:"bytes,1,opt,name=properties,proto3,customtype=Struct" json:"properties,omitempty"`
    UserIdentifiers *Struct `protobuf:"bytes,2,opt,name=user_identifiers,json=userIdentifiers,proto3,customtype=Struct" json:"user_identifiers,omitempty"`
}

func NewRequestRecord_Observed_SDKEvent_Args_Track_OptionsFromFace Uses

func NewRequestRecord_Observed_SDKEvent_Args_Track_OptionsFromFace(that RequestRecord_Observed_SDKEvent_Args_Track_OptionsFace) *RequestRecord_Observed_SDKEvent_Args_Track_Options

type RequestRecord_Observed_SDKEvent_Args_Track_OptionsFace Uses

type RequestRecord_Observed_SDKEvent_Args_Track_OptionsFace interface {
    GetProperties() *Struct
    GetUserIdentifiers() *Struct
}

type RequestRecord_Request Uses

type RequestRecord_Request struct {
    Rid        string                         `protobuf:"bytes,1,opt,name=rid,proto3" json:"rid"`
    Headers    []RequestRecord_Request_Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers"`
    Verb       string                         `protobuf:"bytes,3,opt,name=verb,proto3" json:"verb"`
    Path       string                         `protobuf:"bytes,4,opt,name=path,proto3" json:"path"`
    RawPath    string                         `protobuf:"bytes,5,opt,name=raw_path,json=rawPath,proto3" json:"raw_path"`
    Host       string                         `protobuf:"bytes,6,opt,name=host,proto3" json:"host"`
    Port       string                         `protobuf:"bytes,7,opt,name=port,proto3" json:"port"`
    RemoteIp   string                         `protobuf:"bytes,8,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip"`
    RemotePort string                         `protobuf:"bytes,9,opt,name=remote_port,json=remotePort,proto3" json:"remote_port"`
    Scheme     string                         `protobuf:"bytes,10,opt,name=scheme,proto3" json:"scheme"`
    UserAgent  string                         `protobuf:"bytes,11,opt,name=user_agent,json=userAgent,proto3" json:"user_agent"`
    Referer    string                         `protobuf:"bytes,12,opt,name=referer,proto3" json:"referer"`
    Params     RequestRecord_Request_Params   `protobuf:"bytes,13,opt,name=params,proto3" json:"params"`
}

func NewRequestRecord_RequestFromFace Uses

func NewRequestRecord_RequestFromFace(that RequestRecord_RequestFace) *RequestRecord_Request

type RequestRecord_RequestFace Uses

type RequestRecord_RequestFace interface {
    GetRid() string
    GetHeaders() []RequestRecord_Request_Header
    GetVerb() string
    GetPath() string
    GetRawPath() string
    GetHost() string
    GetPort() string
    GetRemoteIp() string
    GetRemotePort() string
    GetScheme() string
    GetUserAgent() string
    GetReferer() string
    GetParams() RequestRecord_Request_Params
}

type RequestRecord_Request_Header Uses

type RequestRecord_Request_Header struct {
    Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key"`
    Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value"`
}

func NewRequestRecord_Request_HeaderFromFace Uses

func NewRequestRecord_Request_HeaderFromFace(that RequestRecord_Request_HeaderFace) *RequestRecord_Request_Header

func (*RequestRecord_Request_Header) MarshalJSON Uses

func (h *RequestRecord_Request_Header) MarshalJSON() ([]byte, error)

type RequestRecord_Request_HeaderFace Uses

type RequestRecord_Request_HeaderFace interface {
    GetKey() string
    GetValue() string
}

type RequestRecord_Request_Params Uses

type RequestRecord_Request_Params struct {
}

type RequestRecord_Response Uses

type RequestRecord_Response struct {
    Status        uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
    ContentLength uint32 `protobuf:"varint,2,opt,name=content_length,json=contentLength,proto3" json:"content_length"`
    ContentType   string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type"`
}

func NewRequestRecord_ResponseFromFace Uses

func NewRequestRecord_ResponseFromFace(that RequestRecord_ResponseFace) *RequestRecord_Response

type RequestRecord_ResponseFace Uses

type RequestRecord_ResponseFace interface {
    GetStatus() uint32
    GetContentLength() uint32
    GetContentType() string
}

type Rule Uses

type Rule struct {
    Name       string             `json:"name"`
    Hookpoint  Hookpoint          `json:"hookpoint"`
    Data       RuleData           `json:"data"`
    Metrics    []MetricDefinition `json:"metrics"`
    Signature  RuleSignature      `json:"signature"`
    Conditions RuleConditions     `json:"conditions"`
    Callbacks  RuleCallbacks      `json:"callbacks"`
    Test       bool               `json:"test"`
    Block      bool               `json:"block"`
}

func (*Rule) UnmarshalJSON Uses

func (r *Rule) UnmarshalJSON(data []byte) error

type RuleCallbacks Uses

type RuleCallbacks struct{}

type RuleConditions Uses

type RuleConditions struct{}

type RuleData Uses

type RuleData struct {
    Values []RuleDataEntry `json:"values"`
}

func (*RuleData) UnmarshalJSON Uses

func (v *RuleData) UnmarshalJSON(data []byte) error

type RuleDataEntry Uses

type RuleDataEntry Struct

func (*RuleDataEntry) MarshalJSON Uses

func (v *RuleDataEntry) MarshalJSON() ([]byte, error)

MarshalJSON serializes the type to the json representation whose type is provided by the key `type`.

func (*RuleDataEntry) UnmarshalJSON Uses

func (v *RuleDataEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON parses rules data to their actual type. The actual type is (rarely) given by the json structure key `type`.

type RuleSignature Uses

type RuleSignature struct {
    ECDSASignature ECDSASignature `json:"v0_9"`
}

type RulesPackResponse Uses

type RulesPackResponse struct {
    PackID string `json:"pack_id"`
    Rules  []Rule `json:"rules"`
}

type StackFrame Uses

type StackFrame struct {
    Method     string `json:"method"`
    File       string `json:"file"`
    LineNumber uint32 `json:"line_number"`
}

func NewStackFrameFromFace Uses

func NewStackFrameFromFace(e StackFrameFace) *StackFrame

type StackFrameFace Uses

type StackFrameFace interface {
    GetMethod() string
    GetFile() string
    GetLineNumber() uint32
}

type Struct Uses

type Struct struct {
    Value interface{}
}

func (Struct) MarshalJSON Uses

func (s Struct) MarshalJSON() ([]byte, error)

func (Struct) String Uses

func (s Struct) String() string

func (*Struct) UnmarshalJSON Uses

func (s *Struct) UnmarshalJSON(buf []byte) error

type WAFAttackInfos Uses

type WAFAttackInfos struct {
    WAFData string `json:"waf_data"`
}

type WAFRuleDataEntry Uses

type WAFRuleDataEntry struct {
    BindingAccessors []string `json:"binding_accessors"`
    WAFRules         string   `json:"waf_rules"`
    Timeout          uint64   `json:"max_budget_ms"`
}

Package api imports 6 packages (graph) and is imported by 6 packages. Updated 2019-10-30. Refresh now. Tools for package owners.