Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSpreadAcrossTwoDays = errors.New("specified duration are spreading across 2 days")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Login(ctx context.Context, username, password string) error ReserveTutor(ctx context.Context, from time.Time, by time.Duration) (*Reserve, error) Teardown() error }
func NewClient ¶
func NewClient(opts ClientOpts) (Client, error)
type ClientOpts ¶
type Tutor ¶
func (Tutor) MarshalLogObject ¶
func (t Tutor) MarshalLogObject(enc zapcore.ObjectEncoder) error
type Tutors ¶
type Tutors []Tutor
func (Tutors) MarshalLogArray ¶
func (ts Tutors) MarshalLogArray(enc zapcore.ArrayEncoder) error
Click to show internal directories.
Click to hide internal directories.