Documentation ¶
Index ¶
- func Clean(str string, cleanFuncs ...CleanFunc) string
- func OneLine(str string) string
- type ArxivResult
- type ArxivSearch
- type ArxivSpider
- type CleanFunc
- type EndPoint
- type HandlerFunc
- type Importer
- type ImporterRegistry
- type MediumImporter
- type Pagination
- type Paper
- type PaperIndex
- type PaperSearch
- type PaperSearchFacets
- type PaperSearchResults
- type PaperSearchTagsFacet
- type PaperStore
- type PermissionManager
- type Request
- type Server
- type SigningKey
- type TagIndex
- type Team
- type TeamStore
- type User
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArxivResult ¶
type ArxivResult struct { Papers []*Paper Pagination Pagination }
type ArxivSpider ¶
func (*ArxivSpider) Search ¶
func (s *ArxivSpider) Search(search ArxivSearch) (ArxivResult, error)
type EndPoint ¶
type EndPoint struct { // Name uniquely identifies the end point Name string // URL defines the url of the end point. It can contain parameters, // the form depending on the framework used for implementation URL string // Method of the endpoint. Typically GET, PUT, POST, DELETE, etc. Method string // Renderer defines the renderer used to marshal the first returned // value of the handler. Typically JSON, Text, etc. Renderer string // Authenticated should be set to true so the server activates // authentication for that route, i.e. loads the user that will // be available in the context. Authenticated bool // HandlerFunc is the function used to handle incoming requests on // that route. HandlerFunc HandlerFunc }
EndPoint defines
type HandlerFunc ¶
HandlerFunc defines the signature of a web endpoint
type ImporterRegistry ¶
func (ImporterRegistry) Register ¶
func (reg ImporterRegistry) Register(host string, imp Importer)
type MediumImporter ¶
type MediumImporter struct { }
type Pagination ¶
type Paper ¶
type Paper struct { ID int `json:"id"` Title string `json:"title"` Summary string `json:"summary"` Authors []string `json:"authors"` Tags []string `json:"tags"` References []string `json:"references"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` // External ids ArxivID string `json:"arxivId"` }
type PaperIndex ¶
type PaperIndex interface { Index(*Paper) error Search(PaperSearch) (PaperSearchResults, error) Delete(int) error }
type PaperSearch ¶
type PaperSearchFacets ¶
type PaperSearchFacets struct {
Tags PaperSearchTagsFacet `json:"tags,omitempty"`
}
type PaperSearchResults ¶
type PaperSearchResults struct { IDs []int Facets PaperSearchFacets Pagination Pagination }
type PaperSearchTagsFacet ¶
type PaperStore ¶
type PermissionManager ¶
type SigningKey ¶
type SigningKey struct {
Key string `json:"k"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.