client

package
v0.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(addr string) *Client

func (*Client) AddRule

func (c *Client) AddRule(r *rule.WatchRule) error

func (*Client) DeleteRule

func (c *Client) DeleteRule(id string) error

func (*Client) ListRules

func (c *Client) ListRules() ([]*rule.WatchRule, error)

func (*Client) ProbeStatus

func (c *Client) ProbeStatus() (*StatusResponse, error)

func (*Client) Shutdown

func (c *Client) Shutdown() error

type StatusResponse

type StatusResponse struct {
	Version       string `json:"version"`
	PID           int    `json:"pid"`
	RuleCount     int    `json:"rule_count"`
	WatchingCount int    `json:"watching_count"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL