api

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(path string, store Store, bus EventBus) http.Handler

Types

type EventBus

type EventBus interface {
	Send(ctx context.Context, event toggle.Event) error
}

type Store

type Store interface {
	Get(ctx context.Context, serviceName string) ([]toggle.Flag, error)
	Save(ctx context.Context, flags []toggle.Flag, initial bool) error
	Delete(ctx context.Context, flags []toggle.Flag) error
}

Jump to

Keyboard shortcuts

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