Documentation
¶
Index ¶
- Constants
- Variables
- func NewLoggingHooks() *twirp.ServerHooks
- type Server
- func (s *Server) BeginVerification(ctx context.Context, message *service.BeginVerificationOptions) (*service.BeginVerificationResult, error)
- func (s *Server) CancelEventDate(ctx context.Context, message *service.CancelEventDateOptions) (*service.EventDate, error)
- func (s *Server) CompleteVerification(ctx context.Context, message *service.CompleteVerificationOptions) (*service.CompleteVerificationResult, error)
- func (s *Server) CreateAPIKey(ctx context.Context, message *service.WriteableAPIKey) (*service.APIKeyWithSecret, error)
- func (s *Server) CreateEvent(ctx context.Context, message *service.Event) (*service.Event, error)
- func (s *Server) CreateMember(ctx context.Context, message *service.WriteableMember) (*service.Member, error)
- func (s *Server) CreateRegistration(ctx context.Context, message *service.CreateRegistrationOptions) (*service.Registration, error)
- func (s *Server) CreateUser(ctx context.Context, message *service.WriteableUser) (*service.User, error)
- func (s *Server) DeleteRegistration(ctx context.Context, message *service.DeleteRegistrationOptions) (*service.Result, error)
- func (s *Server) GetEvent(ctx context.Context, message *service.ByName) (*service.Event, error)
- func (s *Server) GetMember(ctx context.Context, message *service.GetMemberOptions) (*service.Member, error)
- func (s *Server) GetRegistration(ctx context.Context, message *service.ByConfCode) (*service.Registration, error)
- func (s *Server) ListEventDates(ctx context.Context, message *service.ListEventDatesOptions) (*service.EventDateList, error)
- func (s *Server) ListEventRegistrations(ctx context.Context, message *service.ListEventRegistrationsOptions) (*service.RegistrationList, error)
- func (s *Server) ListEvents(ctx context.Context, message *service.ListEventsOptions) (*service.EventList, error)
- func (s *Server) ListMemberRegistrations(ctx context.Context, message *service.ListMemberRegistrationsOptions) (*service.MemberRegistrationList, error)
- func (s *Server) ListMembers(ctx context.Context, message *service.ListMembersOptions) (*service.MemberList, error)
- func (s *Server) ListSessions(ctx context.Context, message *service.ListSessionsOptions) (*service.SessionList, error)
- func (s *Server) ListSettings(ctx context.Context, message *service.ListSettingsOptions) (*service.SettingsList, error)
- func (s *Server) ListUsers(ctx context.Context, message *service.ListUsersOptions) (*service.UserList, error)
- func (s *Server) Ping(ctx context.Context, message *service.PingOptions) (*service.PingResult, error)
- func (s *Server) Register(ctx context.Context, message *service.RegisterOptions) (*service.Registration, error)
- func (s *Server) UpdateEvent(ctx context.Context, message *service.Event) (*service.Event, error)
- func (s *Server) UpdateMember(ctx context.Context, message *service.WriteableMember) (*service.Member, error)
- func (s *Server) UpdateSettings(ctx context.Context, message *service.UpdateSettingsOptions) (*service.SettingsList, error)
- func (s *Server) UpdateUser(ctx context.Context, message *service.WriteableUser) (*service.User, error)
Constants ¶
View Source
const ( EXIT_STARTUP_ERR = iota + 10 EXIT_DB_ERR )
Variables ¶
View Source
var ( KindOnce = "once" KindSeries = "series" )
Functions ¶
func NewLoggingHooks ¶
func NewLoggingHooks() *twirp.ServerHooks
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) BeginVerification ¶
func (s *Server) BeginVerification(ctx context.Context, message *service.BeginVerificationOptions) (*service.BeginVerificationResult, error)
func (*Server) CancelEventDate ¶
func (*Server) CompleteVerification ¶
func (s *Server) CompleteVerification(ctx context.Context, message *service.CompleteVerificationOptions) (*service.CompleteVerificationResult, error)
TODO(aarongodin): transaction this function for DB writes
func (*Server) CreateAPIKey ¶
func (s *Server) CreateAPIKey(ctx context.Context, message *service.WriteableAPIKey) (*service.APIKeyWithSecret, error)
func (*Server) CreateEvent ¶
func (*Server) CreateMember ¶
func (*Server) CreateRegistration ¶
func (s *Server) CreateRegistration(ctx context.Context, message *service.CreateRegistrationOptions) (*service.Registration, error)
func (*Server) CreateUser ¶
func (*Server) DeleteRegistration ¶
func (*Server) GetRegistration ¶
func (s *Server) GetRegistration(ctx context.Context, message *service.ByConfCode) (*service.Registration, error)
func (*Server) ListEventDates ¶
func (s *Server) ListEventDates(ctx context.Context, message *service.ListEventDatesOptions) (*service.EventDateList, error)
func (*Server) ListEventRegistrations ¶
func (s *Server) ListEventRegistrations(ctx context.Context, message *service.ListEventRegistrationsOptions) (*service.RegistrationList, error)
func (*Server) ListEvents ¶
func (*Server) ListMemberRegistrations ¶
func (s *Server) ListMemberRegistrations(ctx context.Context, message *service.ListMemberRegistrationsOptions) (*service.MemberRegistrationList, error)
func (*Server) ListMembers ¶
func (s *Server) ListMembers(ctx context.Context, message *service.ListMembersOptions) (*service.MemberList, error)
func (*Server) ListSessions ¶
func (s *Server) ListSessions(ctx context.Context, message *service.ListSessionsOptions) (*service.SessionList, error)
func (*Server) ListSettings ¶
func (s *Server) ListSettings(ctx context.Context, message *service.ListSettingsOptions) (*service.SettingsList, error)
func (*Server) Ping ¶
func (s *Server) Ping(ctx context.Context, message *service.PingOptions) (*service.PingResult, error)
func (*Server) Register ¶
func (s *Server) Register(ctx context.Context, message *service.RegisterOptions) (*service.Registration, error)
func (*Server) UpdateEvent ¶
func (*Server) UpdateMember ¶
func (*Server) UpdateSettings ¶
func (s *Server) UpdateSettings(ctx context.Context, message *service.UpdateSettingsOptions) (*service.SettingsList, error)
func (*Server) UpdateUser ¶
Source Files
¶
- begin-verification.go
- cancel-event-date.go
- complete-verification.go
- create-api-key.go
- create-event.go
- create-member.go
- create-registration.go
- create-user.go
- delete-registration.go
- exit-code.go
- get-event.go
- get-member.go
- get-registration.go
- list-event-dates.go
- list-event-registrations.go
- list-events.go
- list-member-registrations.go
- list-members.go
- list-sessions.go
- list-settings.go
- list-users.go
- logging.go
- message-translation.go
- ping.go
- register.go
- server.go
- update-event.go
- update-member.go
- update-settings.go
- update-user.go
Click to show internal directories.
Click to hide internal directories.