Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthSecret = ""
AuthSecret is the secret used when generating mini auth tokens
View Source
var DB *db.DB
View Source
var JWTSecret string
JWTSecret is the Secret used when signing JTW tokens
View Source
var ListenOn = ":8866"
View Source
var Logger *zap.Logger
View Source
var Router = mux.NewRouter()
Functions ¶
func GenerateValidAuthTokens ¶
GenerateValidAuthTokens generates all possible valid auth tokens for right now. To me used both when vreating new tokens and validating incoming tokens
func NotImplemented ¶
func NotImplemented(w http.ResponseWriter, e *http.Request)
Types ¶
type EventCreateRequestBody ¶
type EventJoinRequestBody ¶
type EventJoinRequestBody struct {
Type int `json:"type"`
}
type EventLeaveRequestBody ¶
type EventLeaveRequestBody struct { // Member is the id of the event_member (EventMember.ID), not the member id (Member.ID). One member can fill multiple slots in an event. Member uint `json:"member"` }
type EventsResponse ¶
type EventsResponse struct {
Channels []*EventsResponseChannel
}
type EventsResponseChannel ¶
type EventsResponseChannel struct { *db.EventChannel Events []Event `json:"events"` }
Click to show internal directories.
Click to hide internal directories.