server

package
v0.0.0-...-1135b11 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changer

type Changer interface {
	Change(address string)
}

Changer change the DNS records

type Server

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

Server runs the server

func NewServer

func NewServer(l logger, c Changer) *Server

NewServer creates a new server instance

func (*Server) Change

func (s *Server) Change(
	ctx context.Context, in *pb.ChangeRequest,
) (*pb.ChangeReply, error)

Change changes the DNS records

func (*Server) Run

func (s *Server) Run()

Run runs the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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