http

package
v1.0.0-dev.86 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewService

func NewService(ctx context.Context) (common.Service, error)

NewService returns a cache.

func NewServiceWithConfigPath

func NewServiceWithConfigPath(ctx context.Context, path string) (common.Service, error)

NewServiceWithConfigPath returns a cache with options from config path .

func NewServiceWithOptions

func NewServiceWithOptions(ctx context.Context, o *Options) common.Service

NewServiceWithOptions returns a cache with options.

Types

type Options

type Options struct {
	Address string
}

Options represents cache options.

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

NewOptionsWithPath unmarshals a given key path into options and returns it.

Jump to

Keyboard shortcuts

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