Documentation
¶
Index ¶
- Variables
- func RegisterSink(o SinkOpener, scheme string, schemes ...string)
- func ResolveSessionCSV(opts ...ResolveSessionCSVOpt) (string, error)
- type Race
- type ResolveSessionCSVOpt
- type ResolveSessionCSVOpts
- type Result
- type Score
- type ScoreSessionOpt
- type ScoreSessionOpts
- type Session
- type Sink
- type SinkOpener
- type UpdateSessionOpt
- type UpdateSessionOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlatpakPrefPath = func() string { home, err := os.UserHomeDir() if err != nil { panic(err) } return filepath.Join(home, ".var", "app", "org.rvgl.rvmm/data/rvmm/save") }() SystemPrefPath = func() string { home, err := os.UserHomeDir() if err != nil { panic(err) } return filepath.Join(home, ".local", "share", "RVGL") }() DefaultPrefPathList = func() string { return strings.Join([]string{SystemPrefPath, FlatpakPrefPath}, string(os.PathListSeparator)) }() )
Functions ¶
func RegisterSink ¶
func RegisterSink(o SinkOpener, scheme string, schemes ...string)
func ResolveSessionCSV ¶
func ResolveSessionCSV(opts ...ResolveSessionCSVOpt) (string, error)
Types ¶
type ResolveSessionCSVOpt ¶
type ResolveSessionCSVOpt interface {
Apply(*ResolveSessionCSVOpts)
}
type ResolveSessionCSVOpts ¶
func (*ResolveSessionCSVOpts) Apply ¶
func (o *ResolveSessionCSVOpts) Apply(opts *ResolveSessionCSVOpts)
type Score ¶
func ScoreSession ¶
func ScoreSession(session *Session, opts ...ScoreSessionOpt) []Score
type ScoreSessionOpt ¶
type ScoreSessionOpt interface {
Apply(*ScoreSessionOpts)
}
type ScoreSessionOpts ¶
func (*ScoreSessionOpts) Apply ¶
func (o *ScoreSessionOpts) Apply(opts *ScoreSessionOpts)
type Session ¶
type Sink ¶
type Sink interface {
UpdateSession(context.Context, *Session, ...UpdateSessionOpt) error
}
type UpdateSessionOpt ¶ added in v0.2.0
type UpdateSessionOpt interface {
Apply(*UpdateSessionOpts)
}
type UpdateSessionOpts ¶ added in v0.2.0
type UpdateSessionOpts struct {
Final bool
ScoreSessionOpts *ScoreSessionOpts
}
func (*UpdateSessionOpts) Apply ¶ added in v0.2.0
func (o *UpdateSessionOpts) Apply(opts *UpdateSessionOpts)
Click to show internal directories.
Click to hide internal directories.
