driver

package
v0.0.0-...-cd66ef8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, config body.Config) (body.Body, error)

func Init

func Init() error

func List

func List() []string

func Register

func Register(name string, driver Driver) error

func Release

func Release() error

Types

type Driver

type Driver interface {
	Create(ctx context.Context, c body.Config) (body.Body, error)
	Init() error
	Release() error
}

Jump to

Keyboard shortcuts

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