file_signal_wrapper

package
v0.0.0-...-67d5968 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSignalWrapper

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

func Append

func Append(ctx context.Context, name string, logger *logrus.Logger, signals ...os.Signal) (*FileSignalWrapper, error)

func New

func New(ctx context.Context, opts Options, logger *logrus.Logger, signals ...os.Signal) (*FileSignalWrapper, error)

func Open

func Open(ctx context.Context, name string, logger *logrus.Logger, signals ...os.Signal) (*FileSignalWrapper, error)

func (*FileSignalWrapper) Close

func (this *FileSignalWrapper) Close() error

func (*FileSignalWrapper) Read

func (this *FileSignalWrapper) Read(p []byte) (int, error)

func (*FileSignalWrapper) Write

func (this *FileSignalWrapper) Write(p []byte) (int, error)

type Options

type Options struct {
	Name string
	Flag int
	Perm os.FileMode
}

Jump to

Keyboard shortcuts

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