server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 25 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 {
	// contains filtered or unexported fields
}

Server is an Atlas server

func NewServer

func NewServer(cfg *atlas.Config) (*Server, error)

NewServer returns a new server

func (*Server) Create

func (s *Server) Create(ctx context.Context, req *api.CreateRequest) (*ptypes.Empty, error)

Create creates records in the Atlas datastore

func (*Server) Delete

func (s *Server) Delete(ctx context.Context, req *api.DeleteRequest) (*ptypes.Empty, error)

Delete removes records from Atlas

func (*Server) Export

func (s *Server) Export(ctx context.Context, req *api.ExportRequest) (*api.ExportResponse, error)

Export exports all nameserver records

func (*Server) GenerateProfile

func (s *Server) GenerateProfile() (string, error)

GenerateProfile generates a new Go profile

func (*Server) List

func (s *Server) List(ctx context.Context, req *api.ListRequest) (*api.ListResponse, error)

List returns all records in the Atlas datastore

func (*Server) Lookup

func (s *Server) Lookup(ctx context.Context, req *api.LookupRequest) (*api.LookupResponse, error)

Lookup performs a lookup request to the datastore

func (*Server) Register

func (s *Server) Register(server *grpc.Server) error

Register enables callers to register this service with an existing GRPC server

func (*Server) Start

func (s *Server) Start() error

Start starts the embedded DNS server

func (*Server) Stop

func (s *Server) Stop() error

Stop is used to stop and release resources

Jump to

Keyboard shortcuts

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