fdktools

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: LGPL-2.1 Imports: 4 Imported by: 0

README

fdktools

-- import "src/public/fdk-go-tools"

Package fdk-go-tools provides some helper functions for writing serverless functions for fnproject in Go.

Usage

func InitLogger
func InitLogger(logTag string) (fdklogger *log.Logger)

InitLogger will initialize a logger for use with fnproject on Oracle Cloud (OCI). It is configurable to write either to STDERR (as a default) or a syslog destination. For using a syslog destination, an URI in the format "protocol:://logerserver:port" needs to be provided via configuration variable FN_LOG_DESTINATION. Currently only tcp and udp are supported as protocols. An example for a valid destination URI is "tcp://logserver.example.com:12345".

Documentation

Overview

Package fdk-go-tools provides some helper functions for writing serverless functions for fnproject in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(logTag string) (fdklogger *log.Logger)

InitLogger will initialize a logger for use with fnproject on Oracle Cloud (OCI). It is configurable to write either to STDERR (as a default) or a syslog destination. For using a syslog destination, an URI in the format "protocol:://logerserver:port" needs to be provided via configuration variable FN_LOG_DESTINATION. Currently only tcp and udp are supported as protocols. An example for a valid destination URI is "tcp://logserver.example.com:12345".

Types

This section is empty.

Jump to

Keyboard shortcuts

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