Documentation
¶
Index ¶
- func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetHostname() string
- func (m *Response) GetOutput() string
- func (m *Response) GetOutputFields() map[string]string
- func (m *Response) GetPriority() schema.Priority
- func (m *Response) GetRule() string
- func (m *Response) GetSource() schema.Source
- func (m *Response) GetTime() *timestamp.Timestamp
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type ServiceClient
- type ServiceServer
- type Service_GetClient
- type Service_GetServer
- type Service_SubClient
- type Service_SubServer
- type UnimplementedServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
Types ¶
type Request ¶
type Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The `request` message is the logical representation of the request model. It is the input of the `output.service` service.
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Priority schema.Priority `protobuf:"varint,2,opt,name=priority,proto3,enum=falco.schema.Priority" json:"priority,omitempty"` Source schema.Source `protobuf:"varint,3,opt,name=source,proto3,enum=falco.schema.Source" json:"source,omitempty"` Rule string `protobuf:"bytes,4,opt,name=rule,proto3" json:"rule,omitempty"` Output string `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"` OutputFields map[string]string `` /* 185-byte string literal not displayed */ Hostname string `protobuf:"bytes,7,opt,name=hostname,proto3" json:"hostname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The `response` message is the representation of the output model. It contains all the elements that Falco emits in an output along with the definitions for priorities and source.
func (*Response) Descriptor ¶
func (*Response) GetHostname ¶
func (*Response) GetOutputFields ¶
func (*Response) GetPriority ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type ServiceClient ¶
type ServiceClient interface { // Subscribe to a stream of Falco outputs by sending a stream of requests. Sub(ctx context.Context, opts ...grpc.CallOption) (Service_SubClient, error) // Get all the Falco outputs present in the system up to this call. Get(ctx context.Context, in *Request, opts ...grpc.CallOption) (Service_GetClient, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc *grpc.ClientConn) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // Subscribe to a stream of Falco outputs by sending a stream of requests. Sub(Service_SubServer) error // Get all the Falco outputs present in the system up to this call. Get(*Request, Service_GetServer) error }
ServiceServer is the server API for Service service.
type Service_GetClient ¶
type Service_GetClient interface { Recv() (*Response, error) grpc.ClientStream }
type Service_GetServer ¶
type Service_GetServer interface { Send(*Response) error grpc.ServerStream }
type Service_SubClient ¶
type Service_SubServer ¶
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceServer) Get ¶
func (*UnimplementedServiceServer) Get(req *Request, srv Service_GetServer) error
func (*UnimplementedServiceServer) Sub ¶
func (*UnimplementedServiceServer) Sub(srv Service_SubServer) error
Click to show internal directories.
Click to hide internal directories.