checks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidationSame        = "same"
	ValidationContentType = "content-tye"
	ValidationBase64      = "base-64"
	ValidationFile        = "file"
	ValidationSuccess     = "success"
	DefaultX              = 123
	DefaultY              = 534
	DefaultZ              = 10
)

Variables

Functions

This section is empty.

Types

type CacheCheck

type CacheCheck struct {
	CacheCheckConfig
	// contains filtered or unexported fields
}

func (CacheCheck) Check

func (h CacheCheck) Check(ctx context.Context) error

type CacheCheckConfig

type CacheCheckConfig struct {
	Delay uint
}

func (CacheCheckConfig) GetDelay

func (s CacheCheckConfig) GetDelay() uint

type CacheCheckRegistration

type CacheCheckRegistration struct {
}

func (CacheCheckRegistration) Initialize

func (CacheCheckRegistration) InitializeConfig

func (s CacheCheckRegistration) InitializeConfig() health.HealthCheckConfig

func (CacheCheckRegistration) Name

func (s CacheCheckRegistration) Name() string

type TileCheck

type TileCheck struct {
	TileCheckConfig
	// contains filtered or unexported fields
}

func (*TileCheck) Check

func (h *TileCheck) Check(ctx context.Context) error

func (*TileCheck) ValidateBase64

func (h *TileCheck) ValidateBase64(_ context.Context, img *pkg.Image) error

func (*TileCheck) ValidateContentType

func (h *TileCheck) ValidateContentType(_ context.Context, img *pkg.Image) error

func (*TileCheck) ValidateFile

func (h *TileCheck) ValidateFile(_ context.Context, img *pkg.Image) error

func (*TileCheck) ValidateSame

func (h *TileCheck) ValidateSame(_ context.Context, img *pkg.Image) error

type TileCheckConfig

type TileCheckConfig struct {
	Delay      uint
	Layer      string
	Z          int
	Y          int
	X          int
	Validation string
	Result     string
}

func (TileCheckConfig) GetDelay

func (s TileCheckConfig) GetDelay() uint

type TileCheckRegistration

type TileCheckRegistration struct {
}

func (TileCheckRegistration) Initialize

func (TileCheckRegistration) InitializeConfig

func (s TileCheckRegistration) InitializeConfig() health.HealthCheckConfig

func (TileCheckRegistration) Name

func (s TileCheckRegistration) Name() string

Jump to

Keyboard shortcuts

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