Documentation ¶
Index ¶
- func CheckFreeParticipators(participators []string, initiator string, ...) (bool, string)
- func RemoveDuplicatedParticipators(participators []string, initiator string) []string
- type AdminService
- type Manager
- type MeetingService
- type Service
- func (s *Service) AddMeeting(title string, participators []string, name string) error
- func (s *Service) CreateMeeting(title string, startTime time.Time, endTime time.Time, initiator string, ...) error
- func (s *Service) DeleteMeeting(user, title string) error
- func (s *Service) DeleteUser(name string, password string) error
- func (s *Service) GetAllUsers() string
- func (s *Service) GetCurrentUserName() string
- func (s *Service) GetUserDetail(name string) (string, error)
- func (s *Service) ListMeetings(user, title string, startTime, endTime time.Time) (string, error)
- func (s *Service) Login(name, password string) error
- func (s *Service) QuitMeeting(user, title string) error
- func (s *Service) Register(name, password, email, telephone string) error
- func (s *Service) RemoveParticipators(user, title string, participators []string) error
- func (s *Service) SetCurrentUserName(name string) error
- func (s *Service) SetMeeting(title string, startTime time.Time, setStart bool, endTime time.Time, ...) error
- func (s *Service) SetUser(name, password string, setPassword bool, email string, setEmail bool, ...) error
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFreeParticipators ¶
Types ¶
type AdminService ¶
type Manager ¶
type Manager Service
func (*Manager) Admin ¶
func (s *Manager) Admin() AdminService
func (*Manager) GetService ¶
func (*Manager) Meeting ¶
func (s *Manager) Meeting() MeetingService
func (*Manager) User ¶
func (s *Manager) User() UserService
type MeetingService ¶
type MeetingService interface { CreateMeeting(title string, startTime, endTime time.Time, initiator string, participators []string) error SetMeeting(title string, startTime time.Time, setStart bool, endTime time.Time, setEnd bool, initiator string, participators []string, setPars bool) error DeleteMeeting(user, title string) error QuitMeeting(user, title string) error RemoveParticipators(user, title string, participators []string) error ListMeetings(user, title string, startTime, endTime time.Time) (string, error) AddMeeting(title string, participators []string, name string) error }
type Service ¶
func (*Service) AddMeeting ¶
func (*Service) CreateMeeting ¶
func (*Service) DeleteMeeting ¶
func (*Service) GetAllUsers ¶
func (*Service) GetCurrentUserName ¶
Don't call this method in other service's methods!!!
func (*Service) ListMeetings ¶
func (*Service) QuitMeeting ¶
func (*Service) RemoveParticipators ¶
func (*Service) SetCurrentUserName ¶
Don't call this method in other service's methods!!!
func (*Service) SetMeeting ¶
Click to show internal directories.
Click to hide internal directories.