webhooks

package module
v0.0.0-...-42cd496 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2014 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Webhooks for dictybase

Golang based web services to interact with webhooks

Endpoints

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level uint8

Level represents log levels which are sorted based on the underlying number associated to it.

const (
	DEBUG Level = iota
	INFO
	WARNING
	ERROR
	FATAL
)

Definitions of available levels: Debug < Info < Warning < Error.

type Logger

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

func NewLogger

func NewLogger(w io.Writer, lv Level) *Logger

func (*Logger) Debug

func (l *Logger) Debug(msg interface{})

func (*Logger) Debugf

func (l *Logger) Debugf(fmt string, msg interface{})

func (*Logger) Error

func (l *Logger) Error(msg interface{})

func (*Logger) Errorf

func (l *Logger) Errorf(fmt string, msg ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(msg interface{})

func (*Logger) Fatalf

func (l *Logger) Fatalf(fmt string, msg ...interface{})

func (*Logger) Info

func (l *Logger) Info(msg interface{})

func (*Logger) Infof

func (l *Logger) Infof(fmt string, msg ...interface{})

func (*Logger) SetLevel

func (l *Logger) SetLevel(lv Level)

func (*Logger) Warning

func (l *Logger) Warning(msg interface{})

func (*Logger) Warningf

func (l *Logger) Warningf(fmt string, msg interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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