Documentation ¶
Index ¶
- type APIConfig
- type ResolverConfig
- type Server
- func (s *Server) CreateRecord(ctx context.Context, req *api.NameserverCreateRecordReq) (*api.NameserverCreateRecordResp, error)
- func (s *Server) DeleteRecord(ctx context.Context, req *api.NameserverDeleteRecordReq) (*api.NameserverDeleteRecordResp, error)
- func (s *Server) GetRecord(ctx context.Context, req *api.NameserverGetRecordReq) (*api.NameserverGetRecordResp, error)
- func (s *Server) Init() error
- func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)
- func (s *Server) Start() error
- func (s Server) Status(ctx context.Context, req *api.NameserverHealthReq) (*api.NameserverHealthResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResolverConfig ¶
type Server ¶
type Server struct { *dns.Server APIConf APIConfig ResolverConf ResolverConfig Persister persist.Persist Logger *log.Logger api.UnimplementedNameserverServer }
func (*Server) CreateRecord ¶
func (s *Server) CreateRecord(ctx context.Context, req *api.NameserverCreateRecordReq) (*api.NameserverCreateRecordResp, error)
func (*Server) DeleteRecord ¶
func (s *Server) DeleteRecord(ctx context.Context, req *api.NameserverDeleteRecordReq) (*api.NameserverDeleteRecordResp, error)
func (*Server) GetRecord ¶
func (s *Server) GetRecord(ctx context.Context, req *api.NameserverGetRecordReq) (*api.NameserverGetRecordResp, error)
func (*Server) ServeDNS ¶ added in v0.0.5
func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)
ServeDNS implements github.com/miekg/dns Handler interface
func (Server) Status ¶
func (s Server) Status(ctx context.Context, req *api.NameserverHealthReq) (*api.NameserverHealthResp, error)
Click to show internal directories.
Click to hide internal directories.