internal

package
v0.0.0-...-a3d17fd Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Debug bool
}

An example of a logger that implements `pkg/log/Logger`. Logs to stdout. If Debug == false then Debugf() and Infof() won't output anything.

func (Logger) Debugf

func (logger Logger) Debugf(format string, args ...interface{})

Log to stdout only if Debug is true.

func (Logger) Errorf

func (logger Logger) Errorf(format string, args ...interface{})

Log to stdout always.

func (Logger) Infof

func (logger Logger) Infof(format string, args ...interface{})

Log to stdout only if Debug is true.

func (Logger) Warnf

func (logger Logger) Warnf(format string, args ...interface{})

Log to stdout always.

type Manifest

type Manifest struct {
	Name     string `yaml:"name"`
	Location string `yaml:"location"`

	Environment map[string]string `yaml:"environment"`

	Authorization struct {
		Extensions map[string]string `yaml:"extensions"`
	} `yaml:"authorization"`

	Paths map[string]struct {
		Handler       string `yaml:"handler"`
		Authorization struct {
			ObjectIdPtr string            `yaml:"objectid_ptr"`
			Extensions  map[string]string `yaml:"extensions"`
		} `yaml:"authorization"`
	} `yaml:"paths"`

	Streams []struct {
		InTopic  string `yaml:"in_topic"`
		InGroup  string `yaml:"in_group"`
		OutTopic string `yaml:"out_topic"`
		Handler  string `yaml:"handler"`
	} `yaml:"streams"`
}

Jump to

Keyboard shortcuts

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