http

package
v3.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package http provides the http implementation of the Director interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Director

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

Director is an http implementation of the Director interface.

func NewDirector

func NewDirector(cfg DirectorConfig) *Director

func (*Director) SendDirective

func (d *Director) SendDirective(ctx context.Context, dir *dax.Directive) error

func (*Director) SendSnapshotFieldKeysRequest

func (d *Director) SendSnapshotFieldKeysRequest(ctx context.Context, req *dax.SnapshotFieldKeysRequest) error

func (*Director) SendSnapshotShardDataRequest

func (d *Director) SendSnapshotShardDataRequest(ctx context.Context, req *dax.SnapshotShardDataRequest) error

func (*Director) SendSnapshotTableKeysRequest

func (d *Director) SendSnapshotTableKeysRequest(ctx context.Context, req *dax.SnapshotTableKeysRequest) error

type DirectorConfig

type DirectorConfig struct {
	DirectivePath       string
	SnapshotRequestPath string
	Logger              logger.Logger
}

Jump to

Keyboard shortcuts

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