Documentation ¶
Index ¶
- func GetCurrentUser(ctx context.Context) string
- type AcceptInvitationRequest
- type AcceptInvitationResponse
- type AuthServer
- type AuthorizationService
- type AwardCheevoRequest
- type AwardCheevoResponse
- type CheevosServer
- type CreateCheevoRequest
- type CreateCheevoResponse
- type CreateOrganizationRequest
- type CreateOrganizationResponse
- type DeclineInvitationRequest
- type DeclineInvitationResponse
- type GetCheevoRequest
- type GetCheevoResponse
- type InviteUserToOrganizationRequest
- type InviteUserToOrganizationResponse
- type RefreshInvitationRequest
- type RefreshInvitationResponse
- type RosterServer
- func (rs *RosterServer) AcceptInvitation(w http.ResponseWriter, r *http.Request) (web.Data, error)
- func (rs *RosterServer) CreateOrganization(w http.ResponseWriter, r *http.Request) (web.Data, error)
- func (rs *RosterServer) DeclineInvitation(w http.ResponseWriter, r *http.Request) (web.Data, error)
- func (rs *RosterServer) InviteUserToOrganization(w http.ResponseWriter, r *http.Request) (web.Data, error)
- func (rs *RosterServer) RefreshInvitation(w http.ResponseWriter, r *http.Request) (web.Data, error)
- type SignUpRequest
- type SignUpResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentUser ¶
Types ¶
type AcceptInvitationRequest ¶
type AcceptInvitationRequest struct {
Code string `json:"code"`
}
type AcceptInvitationResponse ¶
type AcceptInvitationResponse struct{}
type AuthServer ¶
type AuthServer struct {
Auth domain.AuthService
}
func (*AuthServer) SignUp ¶
func (as *AuthServer) SignUp(w http.ResponseWriter, r *http.Request) (web.Data, error)
type AuthorizationService ¶
type AuthorizationService interface { CanAwardCheevo(ctx context.Context, awarderID, recipientID, cheevoID string) error CanCreateCheevo(ctx context.Context, userID, orgID string) error CanGetCheevo(ctx context.Context, userID, cheevoID string) error CanInviteUsersToOrganization(ctx context.Context, userID, orgID string) error CanRefreshInvitation(ctx context.Context, userID, invitationID string) error }
type AwardCheevoRequest ¶
type AwardCheevoResponse ¶
type CheevosServer ¶
type CheevosServer struct { Authz AuthorizationService Cheevos domain.CheevosService Roster domain.RosterService }
func (*CheevosServer) AwardCheevo ¶
func (cs *CheevosServer) AwardCheevo(w http.ResponseWriter, r *http.Request) (web.Data, error)
func (*CheevosServer) CreateCheevo ¶
func (cs *CheevosServer) CreateCheevo(w http.ResponseWriter, r *http.Request) (web.Data, error)
func (*CheevosServer) GetCheevo ¶
func (cs *CheevosServer) GetCheevo(w http.ResponseWriter, r *http.Request) (web.Data, error)
type CreateCheevoRequest ¶
type CreateCheevoResponse ¶
type CreateOrganizationRequest ¶
type CreateOrganizationRequest struct {
Name string `json:"name"`
}
type DeclineInvitationRequest ¶
type DeclineInvitationRequest struct {
Code string `json:"code"`
}
type DeclineInvitationResponse ¶
type DeclineInvitationResponse struct{}
type GetCheevoRequest ¶
type GetCheevoRequest struct {
CheevoID string `json:"cheevoID"`
}
type GetCheevoResponse ¶
type RefreshInvitationRequest ¶
type RefreshInvitationRequest struct {
InvitationID string `json:"invitationID"`
}
type RosterServer ¶
type RosterServer struct { Authz AuthorizationService Roster domain.RosterService }
func (*RosterServer) AcceptInvitation ¶
func (rs *RosterServer) AcceptInvitation(w http.ResponseWriter, r *http.Request) (web.Data, error)
func (*RosterServer) CreateOrganization ¶
func (rs *RosterServer) CreateOrganization(w http.ResponseWriter, r *http.Request) (web.Data, error)
func (*RosterServer) DeclineInvitation ¶
func (rs *RosterServer) DeclineInvitation(w http.ResponseWriter, r *http.Request) (web.Data, error)
func (*RosterServer) InviteUserToOrganization ¶
func (rs *RosterServer) InviteUserToOrganization(w http.ResponseWriter, r *http.Request) (web.Data, error)
func (*RosterServer) RefreshInvitation ¶
func (rs *RosterServer) RefreshInvitation(w http.ResponseWriter, r *http.Request) (web.Data, error)
type SignUpRequest ¶
type SignUpResponse ¶
Click to show internal directories.
Click to hide internal directories.