mock

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	DetailFunc    func() string
	IsSuccessFunc func() bool
}

func (*Status) Detail

func (s *Status) Detail() string

func (*Status) IsSuccess

func (s *Status) IsSuccess() bool

type Validator

type Validator struct {
	NameFunc     func() string
	ValidateFunc func(ctx context.Context) (validators.Status, error)
}

func (*Validator) Name

func (v *Validator) Name() string

func (*Validator) Validate

func (v *Validator) Validate(ctx context.Context) (validators.Status, error)

Jump to

Keyboard shortcuts

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