Documentation
¶
Index ¶
- func ParseAdvertSession(r *http.Request, name string) (map[string]int, error)
- type BackServ
- func (s *BackServ) GetProp() map[string]string
- func (s *BackServ) Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *BackServ) PostNews(w http.ResponseWriter, r *http.Request, param httprouter.Params)
- func (s *BackServ) PostPage(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *BackServ) Run(port string)
- func (s *BackServ) SetSSO(sername string, sname string, ssourl string, domain string)
- type FrontServ
- func (s *FrontServ) GetNews(w http.ResponseWriter, r *http.Request, params httprouter.Params)
- func (s *FrontServ) GetProp() map[string]string
- func (s *FrontServ) Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *FrontServ) Run(port string)
- func (s *FrontServ) SetSSO(sername string, sname string, ssourl string, domain string)
- type NewsData
- type NewsItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackServ ¶
func NewBackServ ¶
func (*BackServ) Index ¶
func (s *BackServ) Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*BackServ) PostNews ¶
func (s *BackServ) PostNews(w http.ResponseWriter, r *http.Request, param httprouter.Params)
func (*BackServ) PostPage ¶
func (s *BackServ) PostPage(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
type FrontServ ¶
type FrontServ struct {
Pages *webserv.Pages
AdvertSDK *advert.SDK
// contains filtered or unexported fields
}
func NewFrontServ ¶
func (*FrontServ) GetNews ¶
func (s *FrontServ) GetNews(w http.ResponseWriter, r *http.Request, params httprouter.Params)
func (*FrontServ) Index ¶
func (s *FrontServ) Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
type NewsData ¶
type NewsData struct {
Id string `json:"id" bson:"_id"`
Title string `json:"title" bson:"title"`
Contents string `json:"contents" bson:"contents"`
Image string `json:"image" bson:"image"`
UserId string `json:"user_id" bson:"user_id"`
Type string `json:"type" bson:"type"`
Time time.Time `json:"time" bson:"time"`
}
Click to show internal directories.
Click to hide internal directories.