output

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package output is a generated GoMock package.

Index

Constants

View Source
const (
	Created = "created"
	Deleted = "deleted"
	Updated = "updated"
)

Variables

This section is empty.

Functions

func Errorf added in v1.21.0

func Errorf(w io.Writer, err error) error

func FormatAndPrint added in v1.30.0

func FormatAndPrint(f *factory.Factory, id, entity, method string)

FormatAndPrint formats and prints a message indicating the success of an operation, with or without style, depending on the color configuration.

func Printf added in v1.21.0

func Printf(w io.Writer, msg string)

Types

type ErrorOutput

type ErrorOutput struct {
	GeneralOutput GeneralOutput
	Err           error
}

func (*ErrorOutput) Output

func (o *ErrorOutput) Output() error

type GeneralOutput

type GeneralOutput struct {
	Msg string
	Out io.Writer
}

func (*GeneralOutput) Output

func (o *GeneralOutput) Output()

type MockOutput added in v1.51.0

type MockOutput struct {
	// contains filtered or unexported fields
}

MockOutput is a mock of Output interface.

func NewMockOutput added in v1.51.0

func NewMockOutput(ctrl *gomock.Controller) *MockOutput

NewMockOutput creates a new mock instance.

func (*MockOutput) EXPECT added in v1.51.0

func (m *MockOutput) EXPECT() *MockOutputMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOutput) Output added in v1.51.0

func (m *MockOutput) Output() error

Output mocks base method.

type MockOutputMockRecorder added in v1.51.0

type MockOutputMockRecorder struct {
	// contains filtered or unexported fields
}

MockOutputMockRecorder is the mock recorder for MockOutput.

func (*MockOutputMockRecorder) Output added in v1.51.0

func (mr *MockOutputMockRecorder) Output() *gomock.Call

Output indicates an expected call of Output.

type Output

type Output interface {
	Output() error
}

Jump to

Keyboard shortcuts

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