post

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Types

type Config

type Config struct {
	Go struct {
		Path  string `yaml:"path"  mapstructure:"path"`
		Tools golang `yaml:"tools"  mapstructure:"tools"`
	} `yaml:"go"  mapstructure:"go"`
}
var (
	Cfg Config
)

type Processor

type Processor interface {
	AddTask(ProcessorFunc)
	ProcessAll() error
}

type ProcessorFunc

type ProcessorFunc func() error

type SimpleProcessor

type SimpleProcessor struct {
	Log log.Logger
	// contains filtered or unexported fields
}

func (*SimpleProcessor) AddTask

func (p *SimpleProcessor) AddTask(processorFunc ProcessorFunc)

func (*SimpleProcessor) ProcessAll

func (p *SimpleProcessor) ProcessAll() error

Jump to

Keyboard shortcuts

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