service

package
v5.0.0-...-2679821 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogSyncer

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

func NewLogSyncer

func NewLogSyncer(ctx context.Context, serviceName string) *LogSyncer

func (*LogSyncer) Close

func (syncer *LogSyncer) Close() error

func (*LogSyncer) Sync

func (syncer *LogSyncer) Sync() error

func (*LogSyncer) Write

func (syncer *LogSyncer) Write(p []byte) (n int, err error)

Write implements the io.Writer interface to be used as a Syncer by zap logging. We must copy the []byte as a underlying buffer can mess up things if logs are called very quickly.

Jump to

Keyboard shortcuts

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