advresty

package
v0.0.0-...-575c38c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func Load

func Load(ctx context.Context, ld advconf.Loader) (reg *Registry, err error)

func NewRegistry

func NewRegistry(opts advcore.Options) *Registry

func (*Registry) Client

func (r *Registry) Client(ctx context.Context, name string) *resty.Client

func (*Registry) ModifyClient

func (r *Registry) ModifyClient(ctx context.Context, name string, fn func(client *resty.Client) *resty.Client)

func (*Registry) R

func (r *Registry) R(ctx context.Context, name string) *resty.Request

Jump to

Keyboard shortcuts

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