server

package
v0.0.0-...-77bc64c Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 NewServer

func NewServer(db *sql.DB, queries *storage.Queries, rc *config.RuntimeConfig, p *provider.Providers) *Server

func (*Server) BeginVerification

func (*Server) CancelEventDate

func (s *Server) CancelEventDate(ctx context.Context, message *service.CancelEventDateOptions) (*service.EventDate, error)

func (*Server) CompleteVerification

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 (s *Server) CreateEvent(ctx context.Context, message *service.Event) (*service.Event, error)

func (*Server) CreateMember

func (s *Server) CreateMember(ctx context.Context, message *service.WriteableMember) (*service.Member, error)

func (*Server) CreateRegistration

func (s *Server) CreateRegistration(ctx context.Context, message *service.CreateRegistrationOptions) (*service.Registration, error)

func (*Server) CreateUser

func (s *Server) CreateUser(ctx context.Context, message *service.WriteableUser) (*service.User, error)

func (*Server) DeleteRegistration

func (s *Server) DeleteRegistration(ctx context.Context, message *service.DeleteRegistrationOptions) (*service.Result, error)

func (*Server) GetEvent

func (s *Server) GetEvent(ctx context.Context, message *service.ByName) (*service.Event, error)

func (*Server) GetMember

func (s *Server) GetMember(ctx context.Context, message *service.GetMemberOptions) (*service.Member, error)

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 (s *Server) ListEvents(ctx context.Context, message *service.ListEventsOptions) (*service.EventList, error)

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) ListUsers

func (s *Server) ListUsers(ctx context.Context, message *service.ListUsersOptions) (*service.UserList, 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 (s *Server) UpdateEvent(ctx context.Context, message *service.Event) (*service.Event, error)

func (*Server) UpdateMember

func (s *Server) UpdateMember(ctx context.Context, message *service.WriteableMember) (*service.Member, error)

func (*Server) UpdateSettings

func (s *Server) UpdateSettings(ctx context.Context, message *service.UpdateSettingsOptions) (*service.SettingsList, error)

func (*Server) UpdateUser

func (s *Server) UpdateUser(ctx context.Context, message *service.WriteableUser) (*service.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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