Documentation ¶
Index ¶
- type TestServer
- func (ts *TestServer) AddDomain(domain string)
- func (ts *TestServer) AddRecord(domain string, record string, value string)
- func (ts *TestServer) Cleanup()
- func (ts *TestServer) GetLocalAddr() string
- func (ts *TestServer) GetRemoteAddr() string
- func (ts *TestServer) PushConfig()
- func (ts *TestServer) RemoveAllRecords()
- func (ts *TestServer) RemoveRecord(domain string, record string, value string)
- func (ts *TestServer) RemoveRecordsForDomain(domain string)
- func (ts *TestServer) RemoveRecordsOfTypeForDomain(domain string, record string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestServer ¶
type TestServer struct {
// contains filtered or unexported fields
}
func SetupResolver ¶
func SetupResolver(t *testing.T, domain string) *TestServer
func SetupResolverOnNetwork ¶
func SetupResolverOnNetwork(t *testing.T, domain string, network string) *TestServer
func (*TestServer) AddDomain ¶
func (ts *TestServer) AddDomain(domain string)
func (*TestServer) AddRecord ¶
func (ts *TestServer) AddRecord(domain string, record string, value string)
func (*TestServer) Cleanup ¶
func (ts *TestServer) Cleanup()
func (*TestServer) GetLocalAddr ¶
func (ts *TestServer) GetLocalAddr() string
func (*TestServer) GetRemoteAddr ¶
func (ts *TestServer) GetRemoteAddr() string
func (*TestServer) PushConfig ¶
func (ts *TestServer) PushConfig()
func (*TestServer) RemoveAllRecords ¶
func (ts *TestServer) RemoveAllRecords()
func (*TestServer) RemoveRecord ¶
func (ts *TestServer) RemoveRecord(domain string, record string, value string)
func (*TestServer) RemoveRecordsForDomain ¶
func (ts *TestServer) RemoveRecordsForDomain(domain string)
func (*TestServer) RemoveRecordsOfTypeForDomain ¶
func (ts *TestServer) RemoveRecordsOfTypeForDomain(domain string, record string)
Click to show internal directories.
Click to hide internal directories.