Documentation
¶
Index ¶
- type Client
- type Config
- type ConfigClient
- type ConfigCloudFlare
- type ConfigServer
- type ConfigTLS
- type Server
- func (svr *Server) CreateDNSRecord(_type, name, context string) error
- func (svr *Server) GetClientIP(ctx context.Context) (ip string, err error)
- func (svr *Server) GetDNSRecords() ([]cloudflare.DNSRecord, error)
- func (svr *Server) RefreshDDNSRecord(ctx context.Context, request *pb.RefreshDNSRecordRequest) (*pb.RefreshDNSRecordResponse, error)
- func (svr *Server) Start() error
- func (svr *Server) UpdateDNSRecords(recordID, name, context string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CloudFlare *ConfigCloudFlare `json:"cloud_flare"` TLS *ConfigTLS `json:"tls"` Client *ConfigClient `json:"client"` Server *ConfigServer `json:"server"` }
type ConfigClient ¶
type ConfigCloudFlare ¶
type ConfigServer ¶
type Server ¶
type Server struct { pb.CloudFlareDDNSServer // contains filtered or unexported fields }
func (*Server) CreateDNSRecord ¶
func (*Server) GetClientIP ¶
func (*Server) GetDNSRecords ¶
func (*Server) RefreshDDNSRecord ¶
func (svr *Server) RefreshDDNSRecord(ctx context.Context, request *pb.RefreshDNSRecordRequest) (*pb.RefreshDNSRecordResponse, error)
func (*Server) UpdateDNSRecords ¶
Click to show internal directories.
Click to hide internal directories.