grpc

package
v0.0.0-...-4380e07 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlServer

type ControlServer struct {
	Sock    string
	Address string
	PKI     *ControlServerPKI
	// contains filtered or unexported fields
}

ControlServer implements the ControlServer API

func (*ControlServer) DeleteAuthoritative

func (cs *ControlServer) DeleteAuthoritative(ctx context.Context,
	rr *pb.RecordSet) (*empty.Empty, error)

DeleteAuthoritative deletes the Resource Record for a given Query type and domain

func (*ControlServer) GracefulStop

func (cs *ControlServer) GracefulStop() error

GracefulStop shuts down connetions and removes the Unix domain socket

func (*ControlServer) SetAuthoritativeHost

func (cs *ControlServer) SetAuthoritativeHost(ctx context.Context,
	rr *pb.HostRecordSet) (*empty.Empty, error)

SetAuthoritativeHost sets a Authoritative or Forwarder address for a given domain

func (*ControlServer) Start

func (cs *ControlServer) Start(stg edgedns.Storage) error

Start listens on a Unix domain socket only if address is empty. If IP address is provided socket file path is ignored and server starts to listen on IP address.

type ControlServerPKI

type ControlServerPKI struct {
	Crt string
	Key string
	Ca  string
}

ControlServerPKI defines PKI paths to enable encrypted GRPC server

Jump to

Keyboard shortcuts

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