Documentation ¶
Index ¶
- Variables
- func BaseURL(s string) (*url.URL, error)
- func ComplianceURL(s string) (*url.URL, error)
- func FeedURL(s string) (*url.URL, error)
- func InitURL(s string) (*url.URL, error)
- func LogSimpleResponse(response *jsonrpc.RPCResponse, log *plog.Logger)
- func NewRequester(dbOpensvc string, auth string, insecure bool) (*httphelper.T, error)
- func RestURL(s string) (*url.URL, error)
- type Client
- func (c *Client) Call(method string, params ...interface{}) (*jsonrpc.RPCResponse, error)
- func (c *Client) CallFor(out interface{}, method string, params ...interface{}) error
- func (c *Client) NewPinger() *Pinger
- func (c *Client) Ping() bool
- func (c *Client) SetLogger(log *plog.Logger)
- func (c *Client) String() string
- type Pinger
- type TagAttachment
- type TagAttachmentList
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Alive atomic.Bool
)
Functions ¶
func LogSimpleResponse ¶
func LogSimpleResponse(response *jsonrpc.RPCResponse, log *plog.Logger)
func NewRequester ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client exposes the jsonrpc2 Call function wrapped to add the auth arg
func NewComplianceClient ¶
NewComplianceClient returns a Client to call the collector init app jsonrpc2 methods.
func NewFeedClient ¶
NewFeedClient returns a Client to call the collector feed app jsonrpc2 methods.
func NewInitClient ¶
NewInitClient returns a Client to call the collector init app jsonrpc2 methods.
func (*Client) Call ¶
func (c *Client) Call(method string, params ...interface{}) (*jsonrpc.RPCResponse, error)
Call executes a jsonrpc2 collector call and returns the response.
type TagAttachment ¶
type TagAttachmentList ¶
type TagAttachmentList []TagAttachment
func (TagAttachmentList) Render ¶
func (t TagAttachmentList) Render() string
Click to show internal directories.
Click to hide internal directories.