lockedfile

package
v0.0.0-...-73b5b3b Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileIoTimeout

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

func (*FileIoTimeout) Error

func (self *FileIoTimeout) Error() string

type FileLockGenericError

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

func (*FileLockGenericError) Error

func (self *FileLockGenericError) Error() string

type FileLockTimeoutError

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

func (*FileLockTimeoutError) Error

func (self *FileLockTimeoutError) Error() string

type ILockedFile

type ILockedFile interface {
	ReadLockedFile() ([]byte, error)
	WriteLockedFile(bytes []byte) error
	Close() error
}

func New

func New(filePath string, timeout time.Duration) (lockedFile ILockedFile, err error)

type Metadata

type Metadata struct {
	LastOpened string `json:"LastOpened"`
	LastClosed string `json:"LastClosed"`
}

func (*Metadata) SetLastClosedToNow

func (self *Metadata) SetLastClosedToNow()

func (*Metadata) SetLastOpenedToNow

func (self *Metadata) SetLastOpenedToNow()

type UpdateMetadataOperation

type UpdateMetadataOperation int

this is how you do enums in golang

Jump to

Keyboard shortcuts

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