common

package
v0.0.0-...-900104f Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteToTempFile

func WriteToTempFile(t *testing.T, fileName, content string) *os.File

Types

type Action

type Action int
const (
	ActPut Action = 1 << iota
	ActRemove
	ActUpdate
)

func (Action) String

func (a Action) String() string

type Answer

type Answer func(error, Action)

type LogEntry

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

func NewEntry

func NewEntry() *LogEntry

func (*LogEntry) Account

func (e *LogEntry) Account(account string) *LogEntry

func (*LogEntry) Do

func (e *LogEntry) Do(extra map[string]interface{}) map[string]interface{}

func (*LogEntry) Mbox

func (e *LogEntry) Mbox(mbox string) *LogEntry

func (*LogEntry) Msg

func (e *LogEntry) Msg(msg string) *LogEntry

type UpsyncCallbackFn

type UpsyncCallbackFn func(UpsyncData)

type UpsyncData

type UpsyncData struct {
	Mbox  string
	Path  string
	Uid   uint32
	Flags []string
	Action
	Answer `json:"-"`
}

Jump to

Keyboard shortcuts

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