group

package
v0.0.0-...-a7a9960 Latest Latest
Warning

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

Documentation

Index

Constants

View Source
const (
	TypeWeekley string = "Weekley"
	TypeOnce    string = "Once"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Id        int
	Name      types.Name
	Place     place.Place
	Schedules []Schedule
	Type      Type
	Capacity  int
	// contains filtered or unexported fields
}

type Schedule

type Schedule struct {
	Id       int
	Weekday  types.Weekday
	Time     types.Time
	Duration types.Duration
	// 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) FindAll

func (s Service) FindAll() ([]Group, error)

func (Service) FindById

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

func (Service) Save

func (s Service) Save(ip net.IP, agent int, g *Group) error

type Type

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

func (Type) MarshalJSON

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

func (Type) MarshalText

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

func (*Type) Scan

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

func (*Type) Set

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

func (Type) String

func (g Type) String() string

func (*Type) UnmarshalJSON

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

func (*Type) UnmarshalText

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

func (Type) Value

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

Jump to

Keyboard shortcuts

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