Documentation ¶
Index ¶
- func CheckResponse(t *testing.T, q, msg *dns.Msg, expected string)
- func CheckResponseEmpty(t *testing.T, q, msg *dns.Msg)
- func CheckResponseNxdomain(t *testing.T, q, msg *dns.Msg)
- func CreateQuery(qname string, qtype string) *dns.Msg
- func GetGidFromString(s string) (int, error)
- func GetIdFromString(s string) (uid int, gid int, err error)
- func IsGH() bool
- func JsonRpcEncoder(method string, params interface{}) (b []byte, id int, err error)
- func JsonRpcRequest[T any](endpoint, method string, params interface{}) (result T, err error)
- func LineReader(r io.Reader, f func(s string) error) (count int, err error)
- func ParseAddr(addr string, defaultPort int) (addrs []string, err error)
- func SplitId(s string) (uid int, gid int, err error)
- func URLReader(url string, f func(s string) error) (int, error)
- func UrlOpen(arg string) (io.ReadCloser, error)
- type JsonRpcError
- type JsonRpcReq
- type JsonRpcResp
- type MultiFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGidFromString ¶
Get GID from string (either numeric or name)
func GetIdFromString ¶
Get UID from string (either numeric or name)
func JsonRpcEncoder ¶
func JsonRpcRequest ¶
func LineReader ¶
Call f for each line in io.Reader
Types ¶
type JsonRpcError ¶
type JsonRpcReq ¶
type JsonRpcResp ¶
type JsonRpcResp struct { JsonRpc string `json:"jsonrpc"` Id int `json:"id"` Error json.RawMessage `json:"error"` Result json.RawMessage `json:"result"` }
Click to show internal directories.
Click to hide internal directories.