ddns

package
v0.0.0-...-4245874 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() *config.DDNSConfig

func GetDiscoveryHandler

func GetDiscoveryHandler() models.DiscoveryTask

func GetServer

func GetServer() *grpc.Server

func StartServer

func StartServer(port int) error

Types

type DDNSWorker

type DDNSWorker struct {
	// contains filtered or unexported fields
}

func NewDDNSWorker

func NewDDNSWorker() *DDNSWorker

func (*DDNSWorker) GetCurrentIPs

func (dw *DDNSWorker) GetCurrentIPs(ctx context.Context) error

func (*DDNSWorker) Start

func (dw *DDNSWorker) Start(ctx context.Context) error

type Server

type Server struct {
	pb.UnimplementedDDNSServiceServer
	// contains filtered or unexported fields
}

func (*Server) GetCurrentIP

func (s *Server) GetCurrentIP(ctx context.Context, req *pb.GetCurrentIPRequest) (*pb.GetCurrentIPResponse, error)

Handler for GetCurrentIP endpoint

Directories

Path Synopsis
internal
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL