features

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package features provides an interface to implement custom cloud features. This provider is used by the [server] package.

This package also provides a default feature provider implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureProvider

type FeatureProvider interface {
	New(serviceName string, onError func(err error)) error
	Close() error

	Report(err error, req *http.Request)
}

FeatureProvider provides specific cloud features. If manages the instanciation and closing the features.

type FeatureProviderImpl

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

func (*FeatureProviderImpl) Close

func (f *FeatureProviderImpl) Close() error

func (*FeatureProviderImpl) New

func (f *FeatureProviderImpl) New(
	serviceName string, onError func(err error)) error

New initialize the provider features

func (*FeatureProviderImpl) Report

func (f *FeatureProviderImpl) Report(err error, req *http.Request)

Jump to

Keyboard shortcuts

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