Documentation ¶
Index ¶
- Constants
- Variables
- func API_Forum()
- func API_Page()
- func API_Topic()
- func API_User()
- func API_v1_ForumsHandler(w http.ResponseWriter, r *http.Request)
- func API_v1_PostsHandler(w http.ResponseWriter, r *http.Request)
- func API_v1_TopicsHandler(w http.ResponseWriter, r *http.Request)
- func API_v1_TopicsHandler_POST(w http.ResponseWriter, r *http.Request)
- func API_v1_UsersHandler(w http.ResponseWriter, r *http.Request)
- func CreateSession() string
- func Elysium()
- func Foo()
- func ForumHandler(w http.ResponseWriter, r *http.Request)
- func HomeHandler(w http.ResponseWriter, r *http.Request)
- func ImportSample()
- func Init(filename string)
- func LoginHandler(w http.ResponseWriter, r *http.Request)
- func LoginProcess(w http.ResponseWriter, r *http.Request)
- func Paginate()
- func Ping()
- func PostHandler(w http.ResponseWriter, r *http.Request)
- func RandStringBytes(n int) string
- func RegisterHandler(w http.ResponseWriter, r *http.Request)
- func RegisterProcess(w http.ResponseWriter, r *http.Request)
- func SaveSession(sess string, u User)
- func Serve()
- func ThreadHandler(w http.ResponseWriter, r *http.Request)
- func UserHandler(w http.ResponseWriter, r *http.Request)
- func UsersHandler(w http.ResponseWriter, r *http.Request)
- func Whoa()
- type Cache
- type Config
- type ConfigAWS
- type ConfigDatabase
- type ConfigDev
- type ConfigEnvironment
- type ConfigProd
- type ConfigStage
- type Forum
- type Organization
- type Page
- type Post
- type Posts
- type Publication
- type QueryData
- type Session
- type Topic
- type User
- type Users
Constants ¶
View Source
const ( VERSION = ".00a" TOPICS_PER_PAGE = 10 )
View Source
const (
DATALOC = "s3://"
)
View Source
const (
PW_SALT_LENGTH = 16
)
View Source
const (
RESULTS_PER_PAGE = 25
)
Variables ¶
View Source
var Templates = template.Must(template.ParseGlob("templates/*.html"))
Functions ¶
func API_v1_ForumsHandler ¶
func API_v1_ForumsHandler(w http.ResponseWriter, r *http.Request)
func API_v1_PostsHandler ¶
func API_v1_PostsHandler(w http.ResponseWriter, r *http.Request)
func API_v1_TopicsHandler ¶
func API_v1_TopicsHandler(w http.ResponseWriter, r *http.Request)
func API_v1_TopicsHandler_POST ¶
func API_v1_TopicsHandler_POST(w http.ResponseWriter, r *http.Request)
func API_v1_UsersHandler ¶
func API_v1_UsersHandler(w http.ResponseWriter, r *http.Request)
func CreateSession ¶
func CreateSession() string
func ForumHandler ¶
func ForumHandler(w http.ResponseWriter, r *http.Request)
func HomeHandler ¶
func HomeHandler(w http.ResponseWriter, r *http.Request)
func ImportSample ¶
func ImportSample()
func LoginHandler ¶
func LoginHandler(w http.ResponseWriter, r *http.Request)
func LoginProcess ¶
func LoginProcess(w http.ResponseWriter, r *http.Request)
func PostHandler ¶
func PostHandler(w http.ResponseWriter, r *http.Request)
func RandStringBytes ¶
func RegisterHandler ¶
func RegisterHandler(w http.ResponseWriter, r *http.Request)
func RegisterProcess ¶
func RegisterProcess(w http.ResponseWriter, r *http.Request)
func SaveSession ¶
func ThreadHandler ¶
func ThreadHandler(w http.ResponseWriter, r *http.Request)
func UserHandler ¶
func UserHandler(w http.ResponseWriter, r *http.Request)
func UsersHandler ¶
func UsersHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Config ¶
type Config struct { Name string `json:"name"` File string `json:"filename"` Database ConfigDatabase `json:"database"` Dev ConfigDev `json:"dev"` Stage ConfigStage `json:"stage"` Prod ConfigProd `json:"production"` AWS ConfigAWS `json:"aws"` }
type ConfigDatabase ¶
type ConfigEnvironment ¶
type ConfigEnvironment struct {
Port string `json:"port"`
}
type ConfigProd ¶
type ConfigProd struct {
ConfigEnvironment string `json:"env"`
}
type ConfigStage ¶
type ConfigStage struct {
ConfigEnvironment string `json:"env"`
}
type Forum ¶
type Organization ¶
type Post ¶
type Publication ¶
type QueryData ¶
type QueryData struct {
// contains filtered or unexported fields
}
func NewQueryData ¶
func NewQueryData() QueryData
type Topic ¶
type Topic struct { ID int `json:"topic_id"` Title string `json:"topic_title"` Guid string `json:"topic_guid"` ForumID int `json:"forum_id"` ForumGuid string `json:"forum_guid"` ForumName string `json:"forum_name"` User int `json:"user_id"` Time int `json:"topic_create_time"` Topics []Topic `json:"topic_topics"` Posts []Post `json:"posts"` }
func (Topic) GenerateGUID ¶
Click to show internal directories.
Click to hide internal directories.