runtime

package module
v0.0.0-...-b9d0bc2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package runtime provides functions, types and interfaces required for using generated server and/or client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithErrLogger

func ContextWithErrLogger(ctx context.Context, logger ErrLogger) context.Context

func DefaultLogger

func DefaultLogger() *stdLogger

DefaultLogger returns ErrLogger implementation with std log.Println as actual logger.

Types

type ErrLogger

type ErrLogger interface {
	Error(err string)
}

ErrLogger simple error-only logging interface.

func ErrLoggerFromContext

func ErrLoggerFromContext(ctx context.Context) ErrLogger

func MustErrLoggerFromContext

func MustErrLoggerFromContext(ctx context.Context) ErrLogger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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