Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2023 Changes in this version + const MethodDump + const MethodFlush + const MethodStats + type Client struct + func NewClient(cfg *config.Config, logger *slog.Logger) (*Client, error) + func (cli *Client) Close() error + func (cli *Client) Dump(ctx context.Context) (string, error) + func (cli *Client) Flush(ctx context.Context, params *FlushParams) error + func (cli *Client) Stats(ctx context.Context) (*db.Stats, error) + type FlushParams struct + Alerts bool + Pending bool + type Server struct + func NewServer(ctx context.Context, cfg *config.Config, db *db.DB, _ *xmr.Client, ...) (*Server, error) + func (srv *Server) Accept() (net.Conn, error) + func (srv *Server) Addr() net.Addr + func (srv *Server) Close() error + func (srv *Server) Wait()