domain_name_service

package
v0.0.0-...-29fb6bf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(storage Storage) *Service

func (*Service) GetAddress

func (s *Service) GetAddress(ctx context.Context, serviceName string) (string, error)

func (*Service) UpdateAddress

func (s *Service) UpdateAddress(ctx context.Context, serviceName string, address string) error

type Storage

type Storage interface {
	Get(ctx context.Context, key string) ([]byte, error)
	Set(ctx context.Context, key string, bytes []byte, expiration time.Duration) error
}

Jump to

Keyboard shortcuts

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