storage

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogArchive

type LogArchive struct {
	PathRoot string
}

func (LogArchive) AddSCRAWLogInfo

func (a LogArchive) AddSCRAWLogInfo(year int) SCRAWLogInfo

func (LogArchive) AddSCxLogInfo

func (a LogArchive) AddSCxLogInfo(scx string, date time.Time, fName string) SCxLogInfo

func (LogArchive) AddUserLog

func (a LogArchive) AddUserLog(info UserLogInfo) (UserLog, error)

func (LogArchive) AggregateLogs

func (a LogArchive) AggregateLogs(japan *time.Location, cutoff time.Time) error

func (LogArchive) GetUserLogNames

func (a LogArchive) GetUserLogNames(user string, logs chan UserLogInfo, errChan chan error)

type LogInfo

type LogInfo interface {
	Exists() (bool, error)
	IsComplete(int64) bool

	Open() error
	Close() error
	Write([]byte) (int, error)
	Remove() error
}

type LogSet

type LogSet map[string]bool

type Matches

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

func GetMatches

func GetMatches(pathRoot string, scx string) (m Matches, err error)

func (Matches) Err

func (m Matches) Err() error

func (*Matches) FindNextSlice

func (m *Matches) FindNextSlice(cutoff time.Time, japan *time.Location) bool

func (Matches) GetSlice

func (m Matches) GetSlice() ([]string, time.Time)

func (Matches) Length

func (m Matches) Length() int

type SCRAWLogInfo

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

func (*SCRAWLogInfo) Close

func (l *SCRAWLogInfo) Close() error

func (SCRAWLogInfo) Exists

func (l SCRAWLogInfo) Exists() (bool, error)

func (SCRAWLogInfo) IsComplete

func (l SCRAWLogInfo) IsComplete(rLength int64) bool

func (*SCRAWLogInfo) Open

func (l *SCRAWLogInfo) Open() (err error)

func (SCRAWLogInfo) Remove

func (l SCRAWLogInfo) Remove() error

func (*SCRAWLogInfo) Write

func (l *SCRAWLogInfo) Write(p []byte) (int, error)

type SCxLogInfo

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

func (*SCxLogInfo) Close

func (l *SCxLogInfo) Close() error

func (SCxLogInfo) Exists

func (l SCxLogInfo) Exists() (bool, error)

func (SCxLogInfo) IsComplete

func (l SCxLogInfo) IsComplete(rLength int64) bool

func (*SCxLogInfo) Open

func (l *SCxLogInfo) Open() (err error)

func (SCxLogInfo) Remove

func (l SCxLogInfo) Remove() error

func (*SCxLogInfo) Write

func (l *SCxLogInfo) Write(p []byte) (int, error)

type TenhouLocalStorage

type TenhouLocalStorage struct {
	Type     int      `json:"type"`
	Lobby    int      `json:"lobby"`
	Log      string   `json:"log"`
	Position int      `json:"oya"`
	Users    []string `json:"uname"`
	Sc       string   `json:"sc"`
}

func (*TenhouLocalStorage) Scan

func (t *TenhouLocalStorage) Scan(src interface{}) error

type UserLog

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

func (UserLog) Close

func (ul UserLog) Close() error

func (UserLog) Write

func (ul UserLog) Write(p []byte) (int, error)

type UserLogInfo

type UserLogInfo struct {
	LogID string
	User  string
}

type UserLogSet

type UserLogSet struct {
	Path string
	User string
	Logs LogSet
}

func (*UserLogSet) Read

func (l *UserLogSet) Read() error

func (UserLogSet) Write

func (l UserLogSet) Write() error

Jump to

Keyboard shortcuts

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