Version: v0.0.0-...-a7a9960 Latest Latest

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

Go to latest
Published: Oct 21, 2015 License: GPL-2.0 Imports: 10 Imported by: 0




View Source
const (
	TypeReservation string = "Reservation"
	TypeRegular     string = "Regular"
	TypeReplacement string = "Replacement"


This section is empty.


This section is empty.


type Enrollment

type Enrollment struct {
	Id     int
	Type   Type
	Client client.Client
	Group  group.Group
	// contains filtered or unexported fields

type Service

type Service struct {
	// contains filtered or unexported fields

func NewService

func NewService(sqler db.SQLer) Service

func (Service) FindByClient

func (s Service) FindByClient(clientId int) ([]Enrollment, error)

func (Service) FindByGroup

func (s Service) FindByGroup(groupId int) ([]Enrollment, error)

func (Service) FindById

func (s Service) FindById(id int) (Enrollment, error)

func (Service) Save

func (s Service) Save(ip net.IP, agent int, e *Enrollment) error

type Type

type Type struct {
	// contains filtered or unexported fields

func (Type) MarshalJSON

func (t Type) MarshalJSON() ([]byte, error)

func (Type) MarshalText

func (t Type) MarshalText() ([]byte, error)

func (*Type) Scan

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

func (*Type) Set

func (t *Type) Set(value string) (err error)

func (Type) String

func (t Type) String() string

func (*Type) UnmarshalJSON

func (t *Type) UnmarshalJSON(data []byte) error

func (*Type) UnmarshalText

func (t *Type) UnmarshalText(data []byte) error

func (Type) Value

func (t Type) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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