mock

package
v0.0.26 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	DebugFunc  func(vals ...interface{})
	DebugfFunc func(format string, vals ...interface{})
	InfoFunc   func(vals ...interface{})
	InfofFunc  func(format string, vals ...interface{})
	WarnFunc   func(vals ...interface{})
	WarnfFunc  func(format string, vals ...interface{})
	ErrorFunc  func(vals ...interface{})
	ErrorfFunc func(format string, vals ...interface{})
	FatalFunc  func(vals ...interface{})
	FatalfFunc func(format string, vals ...interface{})
}

func (*Logger) Debug

func (l *Logger) Debug(vals ...interface{})

func (*Logger) Debugf

func (l *Logger) Debugf(format string, vals ...interface{})

func (*Logger) Error

func (l *Logger) Error(vals ...interface{})

func (*Logger) Errorf

func (l *Logger) Errorf(format string, vals ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(vals ...interface{})

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, vals ...interface{})

func (*Logger) Info

func (l *Logger) Info(vals ...interface{})

func (*Logger) Infof

func (l *Logger) Infof(format string, vals ...interface{})

func (*Logger) Warn

func (l *Logger) Warn(vals ...interface{})

func (*Logger) Warnf

func (l *Logger) Warnf(format string, vals ...interface{})

type Retry

type Retry struct {
	OutFunc func(
		fn func(vals ...interface{}) error,
		vals ...interface{},
	)

	OutfFunc func(
		fn func(format string, vals ...interface{}) error,
		format string,
		vals ...interface{},
	)
}

func (*Retry) Out

func (r *Retry) Out(
	fn func(vals ...interface{}) error,
	vals ...interface{},
)

func (*Retry) Outf

func (r *Retry) Outf(
	fn func(format string, vals ...interface{}) error,
	format string, vals ...interface{},
)

Jump to

Keyboard shortcuts

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