preselect

package
v0.0.0-...-4515e61 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreatePreSelectionsEndpoint

func MakeCreatePreSelectionsEndpoint(l *zap.Logger, m *Manager, e encode.Encoder) http.HandlerFunc

MakeCreatePreSelectionsEndpoint for a HTTP server

func MakeGetLeftPreSelectionsEndpoint

func MakeGetLeftPreSelectionsEndpoint(l *zap.Logger, m *Manager, e encode.Encoder) http.HandlerFunc

MakeGetLeftPreSelectionsEndpoint for a HTTP server

func MakeGetNextPreSelectionsEndpoint

func MakeGetNextPreSelectionsEndpoint(l *zap.Logger, m *Manager, e encode.Encoder) http.HandlerFunc

MakeGetNextPreSelectionsEndpoint for a HTTP server

func MakeSetPreSelectionsEndpoint

func MakeSetPreSelectionsEndpoint(l *zap.Logger, m *Manager, e encode.Encoder) http.HandlerFunc

MakeSetPreSelectionsEndpoint for a HTTP server

Types

type Complete

type Complete interface {
	Identifier
	Incomplete
}

Complete pre-selection object

type Identifier

type Identifier interface {
	Sex() uint64
	ComponentID() uint64
	DrawableID() uint64
	TextureID() uint64
}

Identifier of a pre-selection

type Incomplete

type Incomplete interface {
	Provider
}

Incomplete pre-selection object

func NewIncomplete

func NewIncomplete(a uint8) Incomplete

NewIncomplete pre-selection object

type Manager

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

Manager for pre-selection management

func NewManager

func NewManager(r Repository) *Manager

NewManager for pre-selection management

type Provider

type Provider interface {
	Data() *data
}

Provider of data for an incomplete pre-selection object

type Repository

type Repository interface {
	GetNext(context.Context) (Complete, error)
	GetLeft(context.Context) (uint64, error)
	Create(context.Context, ...Complete) error
	Update(context.Context, ...Complete) error
}

Repository for preselect objects

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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