client

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RestyAdapter

func RestyAdapter(r *resty.Client) model.HttpRequestDoer

Types

type Client

type Client interface {
	Host(ctx context.Context) string
	GetServerStatus(ctx context.Context) (*model.ServerStatus, error)

	GetFilteringStatus(ctx context.Context) (*model.FilterStatus, error)
	SetFilteringConfig(ctx context.Context, config model.FilterConfig) error
}

func New

func New(config types.AdGuardInstance) (Client, error)

New create a new api client

Jump to

Keyboard shortcuts

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