log

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReceiveData      = Phase("kri_in")
	FindEntrySudirV1 = Phase("kri_findentry_sudir1")
	AddEntrySudirV1  = Phase("kri_addentry_sudir1")
	UpdateSudirV1    = Phase("kri_update_sudir1")
	UpdateSudirV2    = Phase("kri_update_sudir2")
	UpdateErl        = Phase("kri_update_erl")

	ApiFindEntrySudirV1 = Phase("kri_api_findentry_sudir1")
	ApiFindEntrySudirV2 = Phase("kri_api_findentry_sudir2")
	ApiFindSudirV1      = Phase("kri_api_find_objects_sudir1")
	ApiFindSudirV2      = Phase("kri_api_find_objects_sudir2")

	JsonDataType = DataType("json")
	XmlDataType  = DataType("xml")
)

Variables

This section is empty.

Functions

func MakeLogEntry

func MakeLogEntry(phase Phase, operationId string, data interface{}, dataType DataType) ([]byte, error)

Create a new formatted log entry for mdb data - can be one of any type, if it is not formatted, it will format to specified dataType

func MakeLogEntryWithRequest

func MakeLogEntryWithRequest(
	phase Phase,
	operationId string,
	requestData interface{},
	requestType DataType,
	responseData interface{},
	responseType DataType,
) ([]byte, error)

Types

type DataType

type DataType string

type Phase

type Phase string

Jump to

Keyboard shortcuts

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