common

package
v1.31.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoMimeType   = ""
	MimeTypeJSON = "application/json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetStageResultRequest added in v1.20.0

type GetStageResultRequest struct {
	WorkflowId string
	RunId      string
	StageName  string
}

type GetStageResultResponse added in v1.20.0

type GetStageResultResponse struct {
	Data []byte
}

type Logger added in v1.30.0

type Logger struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLogger added in v1.30.0

func NewLogger(module string, level string) (*Logger, error)

func (*Logger) AddFields added in v1.30.0

func (s *Logger) AddFields(k string, v any)

func (*Logger) Debug added in v1.30.0

func (s *Logger) Debug(format string, v ...any)

func (*Logger) Error added in v1.30.0

func (s *Logger) Error(err error, format string, v ...any)

func (*Logger) Fatal added in v1.30.0

func (s *Logger) Fatal(err error, format string, v ...any)

func (*Logger) Info added in v1.30.0

func (s *Logger) Info(format string, v ...any)

func (*Logger) Warn added in v1.30.0

func (s *Logger) Warn(format string, v ...any)

type ModuleApi added in v1.20.0

type ModuleApi interface {
	GetStageResult(req *GetStageResultRequest) (*GetStageResultResponse, error)
}

Jump to

Keyboard shortcuts

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