proxy

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy provides a proxy of go built-in, or third-party packages to make easier to test.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Package proxy is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer interface {
	ReadFrom(r io.Reader) (int64, error)
	Reset()
	String() string
}

Buffer is an interface that provides a proxy of the methods of bytes.Buffer.

func NewBuffer

func NewBuffer() Buffer

NewBuffer returns a new instance of the Buffer interface.

type Cobra

type Cobra interface {
	ExactArgs(n int) cobra.PositionalArgs
	MaximumNArgs(n int) cobra.PositionalArgs
	NewCommand() Command
}

Cobra is an interface that provides a proxy of the methods of cobra.

func NewCobra

func NewCobra() Cobra

NewCobra returns a new instance of the Cobra interface.

type Command

type Command interface {
	AddCommand(cmds ...Command)
	ExecuteContext(ctx context.Context) error
	Flags() FlagSet
	GetCommand() *cobra.Command
	PersistentFlags() FlagSet
	RunE(cmd *cobra.Command, args []string) error
	SetAliases(s []string)
	SetArgs(f cobra.PositionalArgs)
	SetHelpTemplate(s string)
	SetRunE(f func(*cobra.Command, []string) error)
	SetSilenceErrors(b bool)
	SetUse(s string)
	SetUsageTemplate(s string)
}

Command is an interface that provides a proxy of the methods of cobra.Command.

type DB

type DB interface {
	BeginTx(ctx context.Context, opts *sql.TxOptions) (Tx, error)
	Close() error
	ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
	PrepareContext(ctx context.Context, query string) (Stmt, error)
	QueryContext(ctx context.Context, query string, args ...interface{}) (Rows, error)
}

DB is an interface that provides a proxy of the methods of sql.DB.

type Debug

type Debug interface {
	ReadBuildInfo() (info *debug.BuildInfo, ok bool)
}

Debug is an interface that provides a proxy of the methods of debug.

func NewDebug

func NewDebug() Debug

NewDebug returns a new instance of the Debug interface.

type Echo added in v2.1.0

type Echo interface {
	Get(path string, h e.HandlerFunc, m ...e.MiddlewareFunc)
	Group(prefix string, m ...e.MiddlewareFunc) Group
	Start(address string) error
	Use(middleware ...e.MiddlewareFunc)
}

Echo is an interface that provides a proxy of the methods of echo.Echo.

type Echos added in v2.1.0

type Echos interface {
	NewEcho() (Echo, Logger)
}

Echos is an interface that provides a proxy of the methods of echo.

func NewEchos added in v2.1.0

func NewEchos() Echos

NewEchos returns a new instance of the Echos interface.

type Envconfig

type Envconfig interface {
	Process(prefix string, spec interface{}) error
}

Envconfig is an interface that provides a proxy of the methods of envconfig.

func NewEnvconfig

func NewEnvconfig() Envconfig

NewEnvconfig returns a new instance of the Envconfig interface.

type File

type File interface {
	Close() error
	Read(b []byte) (n int, err error)
	Write(b []byte) (n int, err error)
}

File is an interface that provides a proxy of the methods of os.File.

type FlagSet

type FlagSet interface {
	BoolVarP(p *bool, name string, shorthand string, value bool, usage string)
	IntVarP(p *int, name string, shorthand string, value int, usage string)
	StringVarP(p *string, name string, shorthand string, value string, usage string)
}

FlagSet is an interface that provides a proxy of the methods of pflag.FlagSet.

type Group added in v2.1.0

type Group interface {
	GET(path string, h e.HandlerFunc, m ...e.MiddlewareFunc)
}

Group is an interface that provides a proxy of the methods of echo.Group.

type Gzip

type Gzip interface {
	NewReader(r io.Reader) (GzipReader, error)
}

func NewGzip

func NewGzip() Gzip

type GzipReader

type GzipReader interface {
	Close() error
	Read(p []byte) (n int, err error)
}

GzipReader is an interface that contains the utility functions for reading gzipped files.

type Http

type Http interface {
	Get(url string) (Response, error)
}

Http is an interface that provides a proxy of the methods of http.

func NewHttp

func NewHttp() Http

NewHttp returns a new instance of the Http interface.

type Io

type Io interface {
	Copy(dst io.Writer, src io.Reader) (int64, error)
}

Io is an interface that provides a proxy of the methods of io.

func NewIo

func NewIo() Io

NewIo returns a new instance of the Io interface.

type Json added in v2.1.0

type Json interface {
	Marshal(v interface{}) ([]byte, error)
}

Json is an interface that provides a proxy of the methods of encoding/json.

func NewJson added in v2.1.0

func NewJson() Json

NewJson returns a new instance of the Json interface.

type Keyboard

type Keyboard interface {
	Close()
	GetKey(timeoutSec int) (rune, keyboard.Key, error)
	Open() error
}

Keyboard is an interface that provides a proxy of the methods of keyboard.

func NewKeyboard

func NewKeyboard() Keyboard

NewKeyboard returns a new instance of the keyboard proxy.

type Logger added in v2.1.0

type Logger interface {
	Fatal(err error)
}

Logger is an interface that provides a proxy of the methods of echo.Logger.

type MockBuffer

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

MockBuffer is a mock of Buffer interface.

func NewMockBuffer

func NewMockBuffer(ctrl *gomock.Controller) *MockBuffer

NewMockBuffer creates a new mock instance.

func (*MockBuffer) EXPECT

func (m *MockBuffer) EXPECT() *MockBufferMockRecorder

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

func (*MockBuffer) ReadFrom

func (m *MockBuffer) ReadFrom(r io.Reader) (int64, error)

ReadFrom mocks base method.

func (*MockBuffer) Reset

func (m *MockBuffer) Reset()

Reset mocks base method.

func (*MockBuffer) String

func (m *MockBuffer) String() string

String mocks base method.

type MockBufferMockRecorder

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

MockBufferMockRecorder is the mock recorder for MockBuffer.

func (*MockBufferMockRecorder) ReadFrom

func (mr *MockBufferMockRecorder) ReadFrom(r any) *gomock.Call

ReadFrom indicates an expected call of ReadFrom.

func (*MockBufferMockRecorder) Reset

func (mr *MockBufferMockRecorder) Reset() *gomock.Call

Reset indicates an expected call of Reset.

func (*MockBufferMockRecorder) String

func (mr *MockBufferMockRecorder) String() *gomock.Call

String indicates an expected call of String.

type MockCobra

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

MockCobra is a mock of Cobra interface.

func NewMockCobra

func NewMockCobra(ctrl *gomock.Controller) *MockCobra

NewMockCobra creates a new mock instance.

func (*MockCobra) EXPECT

func (m *MockCobra) EXPECT() *MockCobraMockRecorder

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

func (*MockCobra) ExactArgs

func (m *MockCobra) ExactArgs(n int) cobra.PositionalArgs

ExactArgs mocks base method.

func (*MockCobra) MaximumNArgs

func (m *MockCobra) MaximumNArgs(n int) cobra.PositionalArgs

MaximumNArgs mocks base method.

func (*MockCobra) NewCommand

func (m *MockCobra) NewCommand() Command

NewCommand mocks base method.

type MockCobraMockRecorder

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

MockCobraMockRecorder is the mock recorder for MockCobra.

func (*MockCobraMockRecorder) ExactArgs

func (mr *MockCobraMockRecorder) ExactArgs(n any) *gomock.Call

ExactArgs indicates an expected call of ExactArgs.

func (*MockCobraMockRecorder) MaximumNArgs

func (mr *MockCobraMockRecorder) MaximumNArgs(n any) *gomock.Call

MaximumNArgs indicates an expected call of MaximumNArgs.

func (*MockCobraMockRecorder) NewCommand

func (mr *MockCobraMockRecorder) NewCommand() *gomock.Call

NewCommand indicates an expected call of NewCommand.

type MockCommand

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

MockCommand is a mock of Command interface.

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

NewMockCommand creates a new mock instance.

func (*MockCommand) AddCommand

func (m *MockCommand) AddCommand(cmds ...Command)

AddCommand mocks base method.

func (*MockCommand) EXPECT

func (m *MockCommand) EXPECT() *MockCommandMockRecorder

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

func (*MockCommand) ExecuteContext

func (m *MockCommand) ExecuteContext(ctx context.Context) error

ExecuteContext mocks base method.

func (*MockCommand) Flags

func (m *MockCommand) Flags() FlagSet

Flags mocks base method.

func (*MockCommand) GetCommand

func (m *MockCommand) GetCommand() *cobra.Command

GetCommand mocks base method.

func (*MockCommand) PersistentFlags

func (m *MockCommand) PersistentFlags() FlagSet

PersistentFlags mocks base method.

func (*MockCommand) RunE

func (m *MockCommand) RunE(cmd *cobra.Command, args []string) error

RunE mocks base method.

func (*MockCommand) SetAliases

func (m *MockCommand) SetAliases(s []string)

SetAliases mocks base method.

func (*MockCommand) SetArgs

func (m *MockCommand) SetArgs(f cobra.PositionalArgs)

SetArgs mocks base method.

func (*MockCommand) SetHelpTemplate

func (m *MockCommand) SetHelpTemplate(s string)

SetHelpTemplate mocks base method.

func (*MockCommand) SetRunE

func (m *MockCommand) SetRunE(f func(*cobra.Command, []string) error)

SetRunE mocks base method.

func (*MockCommand) SetSilenceErrors

func (m *MockCommand) SetSilenceErrors(b bool)

SetSilenceErrors mocks base method.

func (*MockCommand) SetUsageTemplate

func (m *MockCommand) SetUsageTemplate(s string)

SetUsageTemplate mocks base method.

func (*MockCommand) SetUse

func (m *MockCommand) SetUse(s string)

SetUse mocks base method.

type MockCommandMockRecorder

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

MockCommandMockRecorder is the mock recorder for MockCommand.

func (*MockCommandMockRecorder) AddCommand

func (mr *MockCommandMockRecorder) AddCommand(cmds ...any) *gomock.Call

AddCommand indicates an expected call of AddCommand.

func (*MockCommandMockRecorder) ExecuteContext

func (mr *MockCommandMockRecorder) ExecuteContext(ctx any) *gomock.Call

ExecuteContext indicates an expected call of ExecuteContext.

func (*MockCommandMockRecorder) Flags

func (mr *MockCommandMockRecorder) Flags() *gomock.Call

Flags indicates an expected call of Flags.

func (*MockCommandMockRecorder) GetCommand

func (mr *MockCommandMockRecorder) GetCommand() *gomock.Call

GetCommand indicates an expected call of GetCommand.

func (*MockCommandMockRecorder) PersistentFlags

func (mr *MockCommandMockRecorder) PersistentFlags() *gomock.Call

PersistentFlags indicates an expected call of PersistentFlags.

func (*MockCommandMockRecorder) RunE

func (mr *MockCommandMockRecorder) RunE(cmd, args any) *gomock.Call

RunE indicates an expected call of RunE.

func (*MockCommandMockRecorder) SetAliases

func (mr *MockCommandMockRecorder) SetAliases(s any) *gomock.Call

SetAliases indicates an expected call of SetAliases.

func (*MockCommandMockRecorder) SetArgs

func (mr *MockCommandMockRecorder) SetArgs(f any) *gomock.Call

SetArgs indicates an expected call of SetArgs.

func (*MockCommandMockRecorder) SetHelpTemplate

func (mr *MockCommandMockRecorder) SetHelpTemplate(s any) *gomock.Call

SetHelpTemplate indicates an expected call of SetHelpTemplate.

func (*MockCommandMockRecorder) SetRunE

func (mr *MockCommandMockRecorder) SetRunE(f any) *gomock.Call

SetRunE indicates an expected call of SetRunE.

func (*MockCommandMockRecorder) SetSilenceErrors

func (mr *MockCommandMockRecorder) SetSilenceErrors(b any) *gomock.Call

SetSilenceErrors indicates an expected call of SetSilenceErrors.

func (*MockCommandMockRecorder) SetUsageTemplate

func (mr *MockCommandMockRecorder) SetUsageTemplate(s any) *gomock.Call

SetUsageTemplate indicates an expected call of SetUsageTemplate.

func (*MockCommandMockRecorder) SetUse

func (mr *MockCommandMockRecorder) SetUse(s any) *gomock.Call

SetUse indicates an expected call of SetUse.

type MockDB

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

MockDB is a mock of DB interface.

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance.

func (*MockDB) BeginTx

func (m *MockDB) BeginTx(ctx context.Context, opts *sql.TxOptions) (Tx, error)

BeginTx mocks base method.

func (*MockDB) Close

func (m *MockDB) Close() error

Close mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) ExecContext

func (m *MockDB) ExecContext(ctx context.Context, query string, args ...any) (Result, error)

ExecContext mocks base method.

func (*MockDB) PrepareContext

func (m *MockDB) PrepareContext(ctx context.Context, query string) (Stmt, error)

PrepareContext mocks base method.

func (*MockDB) QueryContext

func (m *MockDB) QueryContext(ctx context.Context, query string, args ...any) (Rows, error)

QueryContext mocks base method.

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) BeginTx

func (mr *MockDBMockRecorder) BeginTx(ctx, opts any) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDBMockRecorder) ExecContext

func (mr *MockDBMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockDBMockRecorder) PrepareContext

func (mr *MockDBMockRecorder) PrepareContext(ctx, query any) *gomock.Call

PrepareContext indicates an expected call of PrepareContext.

func (*MockDBMockRecorder) QueryContext

func (mr *MockDBMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call

QueryContext indicates an expected call of QueryContext.

type MockDebug

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

MockDebug is a mock of Debug interface.

func NewMockDebug

func NewMockDebug(ctrl *gomock.Controller) *MockDebug

NewMockDebug creates a new mock instance.

func (*MockDebug) EXPECT

func (m *MockDebug) EXPECT() *MockDebugMockRecorder

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

func (*MockDebug) ReadBuildInfo

func (m *MockDebug) ReadBuildInfo() (*debug.BuildInfo, bool)

ReadBuildInfo mocks base method.

type MockDebugMockRecorder

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

MockDebugMockRecorder is the mock recorder for MockDebug.

func (*MockDebugMockRecorder) ReadBuildInfo

func (mr *MockDebugMockRecorder) ReadBuildInfo() *gomock.Call

ReadBuildInfo indicates an expected call of ReadBuildInfo.

type MockEcho added in v2.1.0

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

MockEcho is a mock of Echo interface.

func NewMockEcho added in v2.1.0

func NewMockEcho(ctrl *gomock.Controller) *MockEcho

NewMockEcho creates a new mock instance.

func (*MockEcho) EXPECT added in v2.1.0

func (m *MockEcho) EXPECT() *MockEchoMockRecorder

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

func (*MockEcho) Get added in v2.1.0

func (m_2 *MockEcho) Get(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)

Get mocks base method.

func (*MockEcho) Group added in v2.1.0

func (m_2 *MockEcho) Group(prefix string, m ...echo.MiddlewareFunc) Group

Group mocks base method.

func (*MockEcho) Start added in v2.1.0

func (m *MockEcho) Start(address string) error

Start mocks base method.

func (*MockEcho) Use added in v2.1.0

func (m *MockEcho) Use(middleware ...echo.MiddlewareFunc)

Use mocks base method.

type MockEchoMockRecorder added in v2.1.0

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

MockEchoMockRecorder is the mock recorder for MockEcho.

func (*MockEchoMockRecorder) Get added in v2.1.0

func (mr *MockEchoMockRecorder) Get(path, h any, m ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockEchoMockRecorder) Group added in v2.1.0

func (mr *MockEchoMockRecorder) Group(prefix any, m ...any) *gomock.Call

Group indicates an expected call of Group.

func (*MockEchoMockRecorder) Start added in v2.1.0

func (mr *MockEchoMockRecorder) Start(address any) *gomock.Call

Start indicates an expected call of Start.

func (*MockEchoMockRecorder) Use added in v2.1.0

func (mr *MockEchoMockRecorder) Use(middleware ...any) *gomock.Call

Use indicates an expected call of Use.

type MockEchos added in v2.1.0

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

MockEchos is a mock of Echos interface.

func NewMockEchos added in v2.1.0

func NewMockEchos(ctrl *gomock.Controller) *MockEchos

NewMockEchos creates a new mock instance.

func (*MockEchos) EXPECT added in v2.1.0

func (m *MockEchos) EXPECT() *MockEchosMockRecorder

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

func (*MockEchos) NewEcho added in v2.1.0

func (m *MockEchos) NewEcho() (Echo, Logger)

NewEcho mocks base method.

type MockEchosMockRecorder added in v2.1.0

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

MockEchosMockRecorder is the mock recorder for MockEchos.

func (*MockEchosMockRecorder) NewEcho added in v2.1.0

func (mr *MockEchosMockRecorder) NewEcho() *gomock.Call

NewEcho indicates an expected call of NewEcho.

type MockEnvconfig

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

MockEnvconfig is a mock of Envconfig interface.

func NewMockEnvconfig

func NewMockEnvconfig(ctrl *gomock.Controller) *MockEnvconfig

NewMockEnvconfig creates a new mock instance.

func (*MockEnvconfig) EXPECT

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

func (*MockEnvconfig) Process

func (m *MockEnvconfig) Process(prefix string, spec any) error

Process mocks base method.

type MockEnvconfigMockRecorder

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

MockEnvconfigMockRecorder is the mock recorder for MockEnvconfig.

func (*MockEnvconfigMockRecorder) Process

func (mr *MockEnvconfigMockRecorder) Process(prefix, spec any) *gomock.Call

Process indicates an expected call of Process.

type MockFile

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

MockFile is a mock of File interface.

func NewMockFile

func NewMockFile(ctrl *gomock.Controller) *MockFile

NewMockFile creates a new mock instance.

func (*MockFile) Close

func (m *MockFile) Close() error

Close mocks base method.

func (*MockFile) EXPECT

func (m *MockFile) EXPECT() *MockFileMockRecorder

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

func (*MockFile) Read

func (m *MockFile) Read(b []byte) (int, error)

Read mocks base method.

func (*MockFile) Write

func (m *MockFile) Write(b []byte) (int, error)

Write mocks base method.

type MockFileMockRecorder

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

MockFileMockRecorder is the mock recorder for MockFile.

func (*MockFileMockRecorder) Close

func (mr *MockFileMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockFileMockRecorder) Read

func (mr *MockFileMockRecorder) Read(b any) *gomock.Call

Read indicates an expected call of Read.

func (*MockFileMockRecorder) Write

func (mr *MockFileMockRecorder) Write(b any) *gomock.Call

Write indicates an expected call of Write.

type MockFlagSet

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

MockFlagSet is a mock of FlagSet interface.

func NewMockFlagSet

func NewMockFlagSet(ctrl *gomock.Controller) *MockFlagSet

NewMockFlagSet creates a new mock instance.

func (*MockFlagSet) BoolVarP

func (m *MockFlagSet) BoolVarP(p *bool, name, shorthand string, value bool, usage string)

BoolVarP mocks base method.

func (*MockFlagSet) EXPECT

func (m *MockFlagSet) EXPECT() *MockFlagSetMockRecorder

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

func (*MockFlagSet) IntVarP

func (m *MockFlagSet) IntVarP(p *int, name, shorthand string, value int, usage string)

IntVarP mocks base method.

func (*MockFlagSet) StringVarP

func (m *MockFlagSet) StringVarP(p *string, name, shorthand, value, usage string)

StringVarP mocks base method.

type MockFlagSetMockRecorder

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

MockFlagSetMockRecorder is the mock recorder for MockFlagSet.

func (*MockFlagSetMockRecorder) BoolVarP

func (mr *MockFlagSetMockRecorder) BoolVarP(p, name, shorthand, value, usage any) *gomock.Call

BoolVarP indicates an expected call of BoolVarP.

func (*MockFlagSetMockRecorder) IntVarP

func (mr *MockFlagSetMockRecorder) IntVarP(p, name, shorthand, value, usage any) *gomock.Call

IntVarP indicates an expected call of IntVarP.

func (*MockFlagSetMockRecorder) StringVarP

func (mr *MockFlagSetMockRecorder) StringVarP(p, name, shorthand, value, usage any) *gomock.Call

StringVarP indicates an expected call of StringVarP.

type MockGroup added in v2.1.0

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

MockGroup is a mock of Group interface.

func NewMockGroup added in v2.1.0

func NewMockGroup(ctrl *gomock.Controller) *MockGroup

NewMockGroup creates a new mock instance.

func (*MockGroup) EXPECT added in v2.1.0

func (m *MockGroup) EXPECT() *MockGroupMockRecorder

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

func (*MockGroup) GET added in v2.1.0

func (m_2 *MockGroup) GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)

GET mocks base method.

type MockGroupMockRecorder added in v2.1.0

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

MockGroupMockRecorder is the mock recorder for MockGroup.

func (*MockGroupMockRecorder) GET added in v2.1.0

func (mr *MockGroupMockRecorder) GET(path, h any, m ...any) *gomock.Call

GET indicates an expected call of GET.

type MockGzip

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

MockGzip is a mock of Gzip interface.

func NewMockGzip

func NewMockGzip(ctrl *gomock.Controller) *MockGzip

NewMockGzip creates a new mock instance.

func (*MockGzip) EXPECT

func (m *MockGzip) EXPECT() *MockGzipMockRecorder

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

func (*MockGzip) NewReader

func (m *MockGzip) NewReader(r io.Reader) (GzipReader, error)

NewReader mocks base method.

type MockGzipMockRecorder

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

MockGzipMockRecorder is the mock recorder for MockGzip.

func (*MockGzipMockRecorder) NewReader

func (mr *MockGzipMockRecorder) NewReader(r any) *gomock.Call

NewReader indicates an expected call of NewReader.

type MockGzipReader

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

MockGzipReader is a mock of GzipReader interface.

func NewMockGzipReader

func NewMockGzipReader(ctrl *gomock.Controller) *MockGzipReader

NewMockGzipReader creates a new mock instance.

func (*MockGzipReader) Close

func (m *MockGzipReader) Close() error

Close mocks base method.

func (*MockGzipReader) EXPECT

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

func (*MockGzipReader) Read

func (m *MockGzipReader) Read(p []byte) (int, error)

Read mocks base method.

type MockGzipReaderMockRecorder

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

MockGzipReaderMockRecorder is the mock recorder for MockGzipReader.

func (*MockGzipReaderMockRecorder) Close

func (mr *MockGzipReaderMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockGzipReaderMockRecorder) Read

Read indicates an expected call of Read.

type MockHttp

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

MockHttp is a mock of Http interface.

func NewMockHttp

func NewMockHttp(ctrl *gomock.Controller) *MockHttp

NewMockHttp creates a new mock instance.

func (*MockHttp) EXPECT

func (m *MockHttp) EXPECT() *MockHttpMockRecorder

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

func (*MockHttp) Get

func (m *MockHttp) Get(url string) (Response, error)

Get mocks base method.

type MockHttpMockRecorder

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

MockHttpMockRecorder is the mock recorder for MockHttp.

func (*MockHttpMockRecorder) Get

func (mr *MockHttpMockRecorder) Get(url any) *gomock.Call

Get indicates an expected call of Get.

type MockIo

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

MockIo is a mock of Io interface.

func NewMockIo

func NewMockIo(ctrl *gomock.Controller) *MockIo

NewMockIo creates a new mock instance.

func (*MockIo) Copy

func (m *MockIo) Copy(dst io.Writer, src io.Reader) (int64, error)

Copy mocks base method.

func (*MockIo) EXPECT

func (m *MockIo) EXPECT() *MockIoMockRecorder

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

type MockIoMockRecorder

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

MockIoMockRecorder is the mock recorder for MockIo.

func (*MockIoMockRecorder) Copy

func (mr *MockIoMockRecorder) Copy(dst, src any) *gomock.Call

Copy indicates an expected call of Copy.

type MockJson added in v2.1.0

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

MockJson is a mock of Json interface.

func NewMockJson added in v2.1.0

func NewMockJson(ctrl *gomock.Controller) *MockJson

NewMockJson creates a new mock instance.

func (*MockJson) EXPECT added in v2.1.0

func (m *MockJson) EXPECT() *MockJsonMockRecorder

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

func (*MockJson) Marshal added in v2.1.0

func (m *MockJson) Marshal(v any) ([]byte, error)

Marshal mocks base method.

type MockJsonMockRecorder added in v2.1.0

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

MockJsonMockRecorder is the mock recorder for MockJson.

func (*MockJsonMockRecorder) Marshal added in v2.1.0

func (mr *MockJsonMockRecorder) Marshal(v any) *gomock.Call

Marshal indicates an expected call of Marshal.

type MockKeyboard

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

MockKeyboard is a mock of Keyboard interface.

func NewMockKeyboard

func NewMockKeyboard(ctrl *gomock.Controller) *MockKeyboard

NewMockKeyboard creates a new mock instance.

func (*MockKeyboard) Close

func (m *MockKeyboard) Close()

Close mocks base method.

func (*MockKeyboard) EXPECT

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

func (*MockKeyboard) GetKey

func (m *MockKeyboard) GetKey(timeoutSec int) (rune, keyboard.Key, error)

GetKey mocks base method.

func (*MockKeyboard) Open

func (m *MockKeyboard) Open() error

Open mocks base method.

type MockKeyboardMockRecorder

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

MockKeyboardMockRecorder is the mock recorder for MockKeyboard.

func (*MockKeyboardMockRecorder) Close

func (mr *MockKeyboardMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockKeyboardMockRecorder) GetKey

func (mr *MockKeyboardMockRecorder) GetKey(timeoutSec any) *gomock.Call

GetKey indicates an expected call of GetKey.

func (*MockKeyboardMockRecorder) Open

func (mr *MockKeyboardMockRecorder) Open() *gomock.Call

Open indicates an expected call of Open.

type MockLogger added in v2.1.0

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

MockLogger is a mock of Logger interface.

func NewMockLogger added in v2.1.0

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) EXPECT added in v2.1.0

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Fatal added in v2.1.0

func (m *MockLogger) Fatal(err error)

Fatal mocks base method.

type MockLoggerMockRecorder added in v2.1.0

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Fatal added in v2.1.0

func (mr *MockLoggerMockRecorder) Fatal(err any) *gomock.Call

Fatal indicates an expected call of Fatal.

type MockOs

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

MockOs is a mock of Os interface.

func NewMockOs

func NewMockOs(ctrl *gomock.Controller) *MockOs

NewMockOs creates a new mock instance.

func (*MockOs) Create

func (m *MockOs) Create(name string) (File, error)

Create mocks base method.

func (*MockOs) EXPECT

func (m *MockOs) EXPECT() *MockOsMockRecorder

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

func (*MockOs) Getenv

func (m *MockOs) Getenv(key string) string

Getenv mocks base method.

func (*MockOs) IsNotExist

func (m *MockOs) IsNotExist(err error) bool

IsNotExist mocks base method.

func (*MockOs) MkdirAll

func (m *MockOs) MkdirAll(path string, perm os.FileMode) error

MkdirAll mocks base method.

func (*MockOs) Open

func (m *MockOs) Open(name string) (File, error)

Open mocks base method.

func (*MockOs) RemoveAll

func (m *MockOs) RemoveAll(path string) error

RemoveAll mocks base method.

func (*MockOs) Rename

func (m *MockOs) Rename(oldpath, newpath string) error

Rename mocks base method.

func (*MockOs) Stat

func (m *MockOs) Stat(name string) (os.FileInfo, error)

Stat mocks base method.

func (*MockOs) TempDir

func (m *MockOs) TempDir() string

TempDir mocks base method.

func (*MockOs) UserHomeDir

func (m *MockOs) UserHomeDir() (string, error)

UserHomeDir mocks base method.

type MockOsMockRecorder

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

MockOsMockRecorder is the mock recorder for MockOs.

func (*MockOsMockRecorder) Create

func (mr *MockOsMockRecorder) Create(name any) *gomock.Call

Create indicates an expected call of Create.

func (*MockOsMockRecorder) Getenv

func (mr *MockOsMockRecorder) Getenv(key any) *gomock.Call

Getenv indicates an expected call of Getenv.

func (*MockOsMockRecorder) IsNotExist

func (mr *MockOsMockRecorder) IsNotExist(err any) *gomock.Call

IsNotExist indicates an expected call of IsNotExist.

func (*MockOsMockRecorder) MkdirAll

func (mr *MockOsMockRecorder) MkdirAll(path, perm any) *gomock.Call

MkdirAll indicates an expected call of MkdirAll.

func (*MockOsMockRecorder) Open

func (mr *MockOsMockRecorder) Open(name any) *gomock.Call

Open indicates an expected call of Open.

func (*MockOsMockRecorder) RemoveAll

func (mr *MockOsMockRecorder) RemoveAll(path any) *gomock.Call

RemoveAll indicates an expected call of RemoveAll.

func (*MockOsMockRecorder) Rename

func (mr *MockOsMockRecorder) Rename(oldpath, newpath any) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockOsMockRecorder) Stat

func (mr *MockOsMockRecorder) Stat(name any) *gomock.Call

Stat indicates an expected call of Stat.

func (*MockOsMockRecorder) TempDir

func (mr *MockOsMockRecorder) TempDir() *gomock.Call

TempDir indicates an expected call of TempDir.

func (*MockOsMockRecorder) UserHomeDir

func (mr *MockOsMockRecorder) UserHomeDir() *gomock.Call

UserHomeDir indicates an expected call of UserHomeDir.

type MockPrompt

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

MockPrompt is a mock of Prompt interface.

func NewMockPrompt

func NewMockPrompt(ctrl *gomock.Controller) *MockPrompt

NewMockPrompt creates a new mock instance.

func (*MockPrompt) EXPECT

func (m *MockPrompt) EXPECT() *MockPromptMockRecorder

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

func (*MockPrompt) Run

func (m *MockPrompt) Run() (string, error)

Run mocks base method.

func (*MockPrompt) SetLabel

func (m *MockPrompt) SetLabel(label string)

SetLabel mocks base method.

type MockPromptMockRecorder

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

MockPromptMockRecorder is the mock recorder for MockPrompt.

func (*MockPromptMockRecorder) Run

func (mr *MockPromptMockRecorder) Run() *gomock.Call

Run indicates an expected call of Run.

func (*MockPromptMockRecorder) SetLabel

func (mr *MockPromptMockRecorder) SetLabel(label any) *gomock.Call

SetLabel indicates an expected call of SetLabel.

type MockPromptui

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

MockPromptui is a mock of Promptui interface.

func NewMockPromptui

func NewMockPromptui(ctrl *gomock.Controller) *MockPromptui

NewMockPromptui creates a new mock instance.

func (*MockPromptui) EXPECT

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

func (*MockPromptui) NewPrompt

func (m *MockPromptui) NewPrompt() Prompt

NewPrompt mocks base method.

type MockPromptuiMockRecorder

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

MockPromptuiMockRecorder is the mock recorder for MockPromptui.

func (*MockPromptuiMockRecorder) NewPrompt

func (mr *MockPromptuiMockRecorder) NewPrompt() *gomock.Call

NewPrompt indicates an expected call of NewPrompt.

type MockRand

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

MockRand is a mock of Rand interface.

func NewMockRand

func NewMockRand(ctrl *gomock.Controller) *MockRand

NewMockRand creates a new mock instance.

func (*MockRand) EXPECT

func (m *MockRand) EXPECT() *MockRandMockRecorder

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

func (*MockRand) Intn

func (m *MockRand) Intn(n int) int

Intn mocks base method.

type MockRandMockRecorder

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

MockRandMockRecorder is the mock recorder for MockRand.

func (*MockRandMockRecorder) Intn

func (mr *MockRandMockRecorder) Intn(n any) *gomock.Call

Intn indicates an expected call of Intn.

type MockReadCloser

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

MockReadCloser is a mock of ReadCloser interface.

func NewMockReadCloser

func NewMockReadCloser(ctrl *gomock.Controller) *MockReadCloser

NewMockReadCloser creates a new mock instance.

func (*MockReadCloser) Close

func (m *MockReadCloser) Close() error

Close mocks base method.

func (*MockReadCloser) EXPECT

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

func (*MockReadCloser) Read

func (m *MockReadCloser) Read(p []byte) (int, error)

Read mocks base method.

type MockReadCloserMockRecorder

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

MockReadCloserMockRecorder is the mock recorder for MockReadCloser.

func (*MockReadCloserMockRecorder) Close

func (mr *MockReadCloserMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockReadCloserMockRecorder) Read

Read indicates an expected call of Read.

type MockResponse

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

MockResponse is a mock of Response interface.

func NewMockResponse

func NewMockResponse(ctrl *gomock.Controller) *MockResponse

NewMockResponse creates a new mock instance.

func (*MockResponse) Close

func (m *MockResponse) Close() error

Close mocks base method.

func (*MockResponse) EXPECT

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

func (*MockResponse) GetBody

func (m *MockResponse) GetBody() ReadCloser

GetBody mocks base method.

type MockResponseMockRecorder

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

MockResponseMockRecorder is the mock recorder for MockResponse.

func (*MockResponseMockRecorder) Close

func (mr *MockResponseMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockResponseMockRecorder) GetBody

func (mr *MockResponseMockRecorder) GetBody() *gomock.Call

GetBody indicates an expected call of GetBody.

type MockResult

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

MockResult is a mock of Result interface.

func NewMockResult

func NewMockResult(ctrl *gomock.Controller) *MockResult

NewMockResult creates a new mock instance.

func (*MockResult) EXPECT

func (m *MockResult) EXPECT() *MockResultMockRecorder

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

func (*MockResult) LastInsertId

func (m *MockResult) LastInsertId() (int64, error)

LastInsertId mocks base method.

func (*MockResult) RowsAffected

func (m *MockResult) RowsAffected() (int64, error)

RowsAffected mocks base method.

type MockResultMockRecorder

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

MockResultMockRecorder is the mock recorder for MockResult.

func (*MockResultMockRecorder) LastInsertId

func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call

LastInsertId indicates an expected call of LastInsertId.

func (*MockResultMockRecorder) RowsAffected

func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call

RowsAffected indicates an expected call of RowsAffected.

type MockRows

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

MockRows is a mock of Rows interface.

func NewMockRows

func NewMockRows(ctrl *gomock.Controller) *MockRows

NewMockRows creates a new mock instance.

func (*MockRows) Close

func (m *MockRows) Close() error

Close mocks base method.

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

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

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method.

func (*MockRows) Scan

func (m *MockRows) Scan(dest ...any) error

Scan mocks base method.

type MockRowsMockRecorder

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

MockRowsMockRecorder is the mock recorder for MockRows.

func (*MockRowsMockRecorder) Close

func (mr *MockRowsMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockRowsMockRecorder) Next

func (mr *MockRowsMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*MockRowsMockRecorder) Scan

func (mr *MockRowsMockRecorder) Scan(dest ...any) *gomock.Call

Scan indicates an expected call of Scan.

type MockSpinner

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

MockSpinner is a mock of Spinner interface.

func NewMockSpinner

func NewMockSpinner(ctrl *gomock.Controller) *MockSpinner

NewMockSpinner creates a new mock instance.

func (*MockSpinner) EXPECT

func (m *MockSpinner) EXPECT() *MockSpinnerMockRecorder

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

func (*MockSpinner) Reverse

func (m *MockSpinner) Reverse()

Reverse mocks base method.

func (*MockSpinner) SetColor

func (m *MockSpinner) SetColor(colors ...string) error

SetColor mocks base method.

func (*MockSpinner) SetSuffix

func (m *MockSpinner) SetSuffix(suffix string)

SetSuffix mocks base method.

func (*MockSpinner) Start

func (m *MockSpinner) Start()

Start mocks base method.

func (*MockSpinner) Stop

func (m *MockSpinner) Stop()

Stop mocks base method.

type MockSpinnerMockRecorder

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

MockSpinnerMockRecorder is the mock recorder for MockSpinner.

func (*MockSpinnerMockRecorder) Reverse

func (mr *MockSpinnerMockRecorder) Reverse() *gomock.Call

Reverse indicates an expected call of Reverse.

func (*MockSpinnerMockRecorder) SetColor

func (mr *MockSpinnerMockRecorder) SetColor(colors ...any) *gomock.Call

SetColor indicates an expected call of SetColor.

func (*MockSpinnerMockRecorder) SetSuffix

func (mr *MockSpinnerMockRecorder) SetSuffix(suffix any) *gomock.Call

SetSuffix indicates an expected call of SetSuffix.

func (*MockSpinnerMockRecorder) Start

func (mr *MockSpinnerMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockSpinnerMockRecorder) Stop

func (mr *MockSpinnerMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

type MockSpinners

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

MockSpinners is a mock of Spinners interface.

func NewMockSpinners

func NewMockSpinners(ctrl *gomock.Controller) *MockSpinners

NewMockSpinners creates a new mock instance.

func (*MockSpinners) EXPECT

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

func (*MockSpinners) NewSpinner

func (m *MockSpinners) NewSpinner() Spinner

NewSpinner mocks base method.

type MockSpinnersMockRecorder

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

MockSpinnersMockRecorder is the mock recorder for MockSpinners.

func (*MockSpinnersMockRecorder) NewSpinner

func (mr *MockSpinnersMockRecorder) NewSpinner() *gomock.Call

NewSpinner indicates an expected call of NewSpinner.

type MockSql

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

MockSql is a mock of Sql interface.

func NewMockSql

func NewMockSql(ctrl *gomock.Controller) *MockSql

NewMockSql creates a new mock instance.

func (*MockSql) EXPECT

func (m *MockSql) EXPECT() *MockSqlMockRecorder

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

func (*MockSql) Open

func (m *MockSql) Open(driverName, dataSourceName string) (DB, error)

Open mocks base method.

type MockSqlMockRecorder

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

MockSqlMockRecorder is the mock recorder for MockSql.

func (*MockSqlMockRecorder) Open

func (mr *MockSqlMockRecorder) Open(driverName, dataSourceName any) *gomock.Call

Open indicates an expected call of Open.

type MockStmt

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

MockStmt is a mock of Stmt interface.

func NewMockStmt

func NewMockStmt(ctrl *gomock.Controller) *MockStmt

NewMockStmt creates a new mock instance.

func (*MockStmt) Close

func (m *MockStmt) Close() error

Close mocks base method.

func (*MockStmt) EXPECT

func (m *MockStmt) EXPECT() *MockStmtMockRecorder

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

func (*MockStmt) ExecContext

func (m *MockStmt) ExecContext(ctx context.Context, args ...any) (Result, error)

ExecContext mocks base method.

type MockStmtMockRecorder

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

MockStmtMockRecorder is the mock recorder for MockStmt.

func (*MockStmtMockRecorder) Close

func (mr *MockStmtMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockStmtMockRecorder) ExecContext

func (mr *MockStmtMockRecorder) ExecContext(ctx any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

type MockTable

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

MockTable is a mock of Table interface.

func NewMockTable

func NewMockTable(ctrl *gomock.Controller) *MockTable

NewMockTable creates a new mock instance.

func (*MockTable) AppendBulk

func (m *MockTable) AppendBulk(rows [][]string)

AppendBulk mocks base method.

func (*MockTable) EXPECT

func (m *MockTable) EXPECT() *MockTableMockRecorder

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

func (*MockTable) Render

func (m *MockTable) Render()

Render mocks base method.

func (*MockTable) SetAlignment

func (m *MockTable) SetAlignment(align int)

SetAlignment mocks base method.

func (*MockTable) SetAutoFormatHeaders

func (m *MockTable) SetAutoFormatHeaders(auto bool)

SetAutoFormatHeaders mocks base method.

func (*MockTable) SetAutoWrapText

func (m *MockTable) SetAutoWrapText(auto bool)

SetAutoWrapText mocks base method.

func (*MockTable) SetBorder

func (m *MockTable) SetBorder(border bool)

SetBorder mocks base method.

func (*MockTable) SetCenterSeparator

func (m *MockTable) SetCenterSeparator(sep string)

SetCenterSeparator mocks base method.

func (*MockTable) SetColumnSeparator

func (m *MockTable) SetColumnSeparator(sep string)

SetColumnSeparator mocks base method.

func (*MockTable) SetHeader

func (m *MockTable) SetHeader(keys []string)

SetHeader mocks base method.

func (*MockTable) SetHeaderAlignment

func (m *MockTable) SetHeaderAlignment(hAlign int)

SetHeaderAlignment mocks base method.

func (*MockTable) SetHeaderLine

func (m *MockTable) SetHeaderLine(line bool)

SetHeaderLine mocks base method.

func (*MockTable) SetNoWhiteSpace

func (m *MockTable) SetNoWhiteSpace(allow bool)

SetNoWhiteSpace mocks base method.

func (*MockTable) SetRowSeparator

func (m *MockTable) SetRowSeparator(sep string)

SetRowSeparator mocks base method.

func (*MockTable) SetTablePadding

func (m *MockTable) SetTablePadding(padding string)

SetTablePadding mocks base method.

type MockTableMockRecorder

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

MockTableMockRecorder is the mock recorder for MockTable.

func (*MockTableMockRecorder) AppendBulk

func (mr *MockTableMockRecorder) AppendBulk(rows any) *gomock.Call

AppendBulk indicates an expected call of AppendBulk.

func (*MockTableMockRecorder) Render

func (mr *MockTableMockRecorder) Render() *gomock.Call

Render indicates an expected call of Render.

func (*MockTableMockRecorder) SetAlignment

func (mr *MockTableMockRecorder) SetAlignment(align any) *gomock.Call

SetAlignment indicates an expected call of SetAlignment.

func (*MockTableMockRecorder) SetAutoFormatHeaders

func (mr *MockTableMockRecorder) SetAutoFormatHeaders(auto any) *gomock.Call

SetAutoFormatHeaders indicates an expected call of SetAutoFormatHeaders.

func (*MockTableMockRecorder) SetAutoWrapText

func (mr *MockTableMockRecorder) SetAutoWrapText(auto any) *gomock.Call

SetAutoWrapText indicates an expected call of SetAutoWrapText.

func (*MockTableMockRecorder) SetBorder

func (mr *MockTableMockRecorder) SetBorder(border any) *gomock.Call

SetBorder indicates an expected call of SetBorder.

func (*MockTableMockRecorder) SetCenterSeparator

func (mr *MockTableMockRecorder) SetCenterSeparator(sep any) *gomock.Call

SetCenterSeparator indicates an expected call of SetCenterSeparator.

func (*MockTableMockRecorder) SetColumnSeparator

func (mr *MockTableMockRecorder) SetColumnSeparator(sep any) *gomock.Call

SetColumnSeparator indicates an expected call of SetColumnSeparator.

func (*MockTableMockRecorder) SetHeader

func (mr *MockTableMockRecorder) SetHeader(keys any) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockTableMockRecorder) SetHeaderAlignment

func (mr *MockTableMockRecorder) SetHeaderAlignment(hAlign any) *gomock.Call

SetHeaderAlignment indicates an expected call of SetHeaderAlignment.

func (*MockTableMockRecorder) SetHeaderLine

func (mr *MockTableMockRecorder) SetHeaderLine(line any) *gomock.Call

SetHeaderLine indicates an expected call of SetHeaderLine.

func (*MockTableMockRecorder) SetNoWhiteSpace

func (mr *MockTableMockRecorder) SetNoWhiteSpace(allow any) *gomock.Call

SetNoWhiteSpace indicates an expected call of SetNoWhiteSpace.

func (*MockTableMockRecorder) SetRowSeparator

func (mr *MockTableMockRecorder) SetRowSeparator(sep any) *gomock.Call

SetRowSeparator indicates an expected call of SetRowSeparator.

func (*MockTableMockRecorder) SetTablePadding

func (mr *MockTableMockRecorder) SetTablePadding(padding any) *gomock.Call

SetTablePadding indicates an expected call of SetTablePadding.

type MockTableWriter

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

MockTableWriter is a mock of TableWriter interface.

func NewMockTableWriter

func NewMockTableWriter(ctrl *gomock.Controller) *MockTableWriter

NewMockTableWriter creates a new mock instance.

func (*MockTableWriter) EXPECT

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

func (*MockTableWriter) NewTable

func (m *MockTableWriter) NewTable(writer io.Writer) Table

NewTable mocks base method.

type MockTableWriterMockRecorder

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

MockTableWriterMockRecorder is the mock recorder for MockTableWriter.

func (*MockTableWriterMockRecorder) NewTable

func (mr *MockTableWriterMockRecorder) NewTable(writer any) *gomock.Call

NewTable indicates an expected call of NewTable.

type MockTx

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

MockTx is a mock of Tx interface.

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance.

func (*MockTx) Commit

func (m *MockTx) Commit() error

Commit mocks base method.

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) ExecContext

func (m *MockTx) ExecContext(ctx context.Context, query string, args ...any) (Result, error)

ExecContext mocks base method.

func (*MockTx) Rollback

func (m *MockTx) Rollback() error

Rollback mocks base method.

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx.

func (*MockTxMockRecorder) Commit

func (mr *MockTxMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxMockRecorder) ExecContext

func (mr *MockTxMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockTxMockRecorder) Rollback

func (mr *MockTxMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

type Os

type Os interface {
	Create(name string) (File, error)
	Getenv(key string) string
	IsNotExist(err error) bool
	MkdirAll(path string, perm os.FileMode) error
	Open(name string) (File, error)
	RemoveAll(path string) error
	Rename(oldpath, newpath string) error
	Stat(name string) (os.FileInfo, error)
	TempDir() string
	UserHomeDir() (string, error)
}

Os is an interface that provides a proxy of the methods of os.

func NewOs

func NewOs() Os

NewOs returns a new instance of the Os interface.

type Prompt

type Prompt interface {
	Run() (string, error)
	SetLabel(label string)
}

Prompt is an interface that provides a proxy of the methods of promptui.Prompt.

type Promptui

type Promptui interface {
	NewPrompt() Prompt
}

Promptui is an interface that provides a proxy of the methods of promptui.

func NewPromptui

func NewPromptui() Promptui

NewPromptui returns a new instance of the Promptui interface.

type Rand

type Rand interface {
	Intn(n int) int
}

Rand is an interface that provides a proxy of the methods of math/rand.

func NewRand

func NewRand() Rand

NewRand returns a new instance of the Rand interface.

type ReadCloser

type ReadCloser interface {
	Close() error
	Read(p []byte) (n int, err error)
}

ReadCloser is an interface that provides a proxy of the methods of io.ReadCloser.

type Response

type Response interface {
	Close() error
	GetBody() ReadCloser
}

Response is an interface that provides a proxy of the methods of http.Response.

type Result

type Result interface {
	LastInsertId() (int64, error)
	RowsAffected() (int64, error)
}

Result is an interface that provides a proxy of the methods of sql.Result.

type Rows

type Rows interface {
	Close() error
	Next() bool
	Scan(dest ...interface{}) error
}

Rows is an interface that provides a proxy of the methods of sql.Rows.

type Spinner

type Spinner interface {
	Reverse()
	SetColor(colors ...string) error
	SetSuffix(suffix string)
	Start()
	Stop()
}

Spinner is an interface that provides a proxy of the methods of spinner.Spinner.

type Spinners

type Spinners interface {
	NewSpinner() Spinner
}

Spinners is an interface that provides a proxy of the methods of spinner.

func NewSpinners

func NewSpinners() Spinners

NewSpinners returns a new instance of the Spinners interface.

type Sql

type Sql interface {
	Open(driverName, dataSourceName string) (DB, error)
}

Sql is an interface that provides a proxy of the methods of sql.

func NewSql

func NewSql() Sql

NewSql returns a new instance of the Sql interface.

type Stmt

type Stmt interface {
	ExecContext(ctx context.Context, args ...interface{}) (Result, error)
	Close() error
}

Stmt is an interface that provides a proxy of the methods of sql.Stmt.

type Table

type Table interface {
	AppendBulk(rows [][]string)
	Render()
	SetAlignment(align int)
	SetAutoFormatHeaders(auto bool)
	SetAutoWrapText(auto bool)
	SetBorder(border bool)
	SetCenterSeparator(sep string)
	SetColumnSeparator(sep string)
	SetHeader(keys []string)
	SetHeaderAlignment(hAlign int)
	SetHeaderLine(line bool)
	SetNoWhiteSpace(allow bool)
	SetRowSeparator(sep string)
	SetTablePadding(padding string)
}

Table is an interface that provides a proxy of the methods of tablewriter.Table.

type TableWriter

type TableWriter interface {
	NewTable(writer io.Writer) Table
}

TableWriter is an interface that provides a proxy of the methods of tablewriter.

func NewTableWriter

func NewTableWriter() TableWriter

NewTableWriter returns a new instance of the TableWriter interface.

type Tx

type Tx interface {
	Commit() error
	ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
	Rollback() error
}

Tx is an interface that provides a proxy of the methods of sql.Tx.

Jump to

Keyboard shortcuts

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