api

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	mindnspb.UnimplementedMindnsServiceServer
	// contains filtered or unexported fields
}

Server implements the MindnsService gRPC server.

func NewServer

func NewServer(mgr *zone.Manager) *Server

NewServer creates a new gRPC API server.

func (*Server) CreateZone

func (s *Server) CreateZone(ctx context.Context, req *mindnspb.CreateZoneRequest) (*mindnspb.Zone, error)

CreateZone creates a new zone.

func (*Server) DeleteRRset

func (s *Server) DeleteRRset(ctx context.Context, req *mindnspb.DeleteRRsetRequest) (*emptypb.Empty, error)

DeleteRRset deletes an RRset.

func (*Server) DeleteZone

func (s *Server) DeleteZone(ctx context.Context, req *mindnspb.DeleteZoneRequest) (*emptypb.Empty, error)

DeleteZone deletes a zone.

func (*Server) GetRRset

func (s *Server) GetRRset(ctx context.Context, req *mindnspb.GetRRsetRequest) (*mindnspb.RRset, error)

GetRRset returns an RRset.

func (*Server) GetZone

func (s *Server) GetZone(ctx context.Context, req *mindnspb.GetZoneRequest) (*mindnspb.Zone, error)

GetZone returns a zone by name.

func (*Server) ListRRsets

ListRRsets lists RRsets in a zone.

func (*Server) ListZones

ListZones returns all zones.

func (*Server) SetRRset

func (s *Server) SetRRset(ctx context.Context, req *mindnspb.SetRRsetRequest) (*mindnspb.RRset, error)

SetRRset creates or replaces an RRset.

Jump to

Keyboard shortcuts

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