Documentation ¶
Index ¶
- func AssertServers(t testing.TB, expected []string, actual []server.Server)
- func CalcReqLength(req []byte) int
- func GenBrowserChallenge(l uint) []byte
- func GenBrowserChallenge8() []byte
- func GenExtraServerParams(extra map[string]string) map[string]string
- func GenRandomIP() net.IP
- func GenServerParams() map[string]string
- func PackBrowserRequest(fields []string, filters string, options []byte, getChallenge func() []byte, ...) []byte
- func PackHeartbeatRequest(instanceID []byte, params map[string]string) []byte
- func PrepareTestServer(tb fxtest.TB, extra ...fx.Option) (*httptest.Server, func())
- func SendBrowserRequest(address string, filters string) []byte
- func SendTCP(address string, req []byte) []byte
- func SendUDP(address string, req []byte) []byte
- func UnpackServerList(resp []byte) []map[string]string
- func WithBrowserChallengeLength(l int) func([]byte) int
- type Response
- type TCPClient
- type TestRequestOpt
- type TestServerRepositories
- type UDPClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertServers ¶ added in v0.3.0
func CalcReqLength ¶
func GenBrowserChallenge ¶
func GenBrowserChallenge8 ¶
func GenBrowserChallenge8() []byte
func GenRandomIP ¶
func GenServerParams ¶
func PackBrowserRequest ¶
func PackHeartbeatRequest ¶
func PrepareTestServer ¶
func SendBrowserRequest ¶
func UnpackServerList ¶
Types ¶
type Response ¶
func DoTestRequest ¶
type TCPClient ¶ added in v0.7.0
type TCPClient struct {
// contains filtered or unexported fields
}
func NewTCPClient ¶ added in v0.7.0
type TestRequestOpt ¶
func MustBindJSON ¶
func MustBindJSON(v interface{}) TestRequestOpt
func MustHaveNoBody ¶
func MustHaveNoBody() TestRequestOpt
type TestServerRepositories ¶ added in v0.19.0
type TestServerRepositories struct { Servers repositories.ServerRepository Instances repositories.InstanceRepository Probes repositories.ProbeRepository }
func PrepareTestServerWithRepos ¶ added in v0.7.0
type UDPClient ¶ added in v0.7.0
func NewUDPClient ¶ added in v0.7.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.