file

package
Version: v0.0.0-...-36f9daf Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package file allows reading/writing from/to a Rump file. Rump file protocol is key✝✝value✝✝ttl✝✝key✝✝value✝✝ttl✝✝...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path   string
	Bus    message.Bus
	Silent bool
	TTL    bool
}

File can read and write, to a file Path, using the message Bus.

func New

func New(path string, bus message.Bus, silent, ttl bool) *File

New creates the File struct, to be used for reading/writing.

func (*File) Read

func (f *File) Read(ctx context.Context) error

Read scans a Rump file and sends Payloads to the message bus.

func (*File) Write

func (f *File) Write(ctx context.Context) error

Write writes to a Rump file Payloads from the message bus.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL