Documentation ¶
Index ¶
- func NewReply(rID uint64, replyCode protocol.NotificationReplyCode, data string) *protocol.NotificationReply
- type Client
- func (c *Client) Ask(con *conman.Connection) (*rule.Rule, bool)
- func (c *Client) Connected() bool
- func (c *Client) DefaultAction() rule.Action
- func (c *Client) DefaultDuration() rule.Duration
- func (c *Client) InterceptUnknown() bool
- func (c *Client) ProcMonitorMethod() string
- func (c *Client) Subscribe()
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReply ¶
func NewReply(rID uint64, replyCode protocol.NotificationReplyCode, data string) *protocol.NotificationReply
NewReply constructs a new protocol notification reply
Types ¶
type Client ¶
Client holds the connection information of a client.
func NewClient ¶
func NewClient(path string, stats *statistics.Statistics, rules *rule.Loader) *Client
NewClient creates and configures a new client.
func (*Client) Ask ¶
Ask sends a request to the server, with the values of a connection to be allowed or denied.
func (*Client) Connected ¶
Connected checks if the client has established a connection with the server.
func (*Client) DefaultAction ¶
DefaultAction returns the default configured action for
func (*Client) DefaultDuration ¶
DefaultDuration returns the default duration configured for a rule. For example it can be: once, always, "until restart".
func (*Client) ProcMonitorMethod ¶
ProcMonitorMethod returns the monitor method configured. If it's not present in the config file, it'll return an emptry string.
Click to show internal directories.
Click to hide internal directories.