Documentation ¶
Index ¶
- func FilterByNodeType(node *html.Node, nodeType html.NodeType) []*html.Node
- func FilterChildren(node *html.Node, pred NodePredicate) []*html.Node
- func FilterNodeList(nodes []*html.Node, pred NodePredicate) []*html.Node
- func FilterTree(node *html.Node, pred NodePredicate) []*html.Node
- func FindByClass(node *html.Node, tag string) (*html.Node, error)
- func FindNode(node *html.Node, pred NodePredicate) *html.Node
- func GetHtml(url string) *html.Node
- func GetTextNode(node *html.Node) *html.Node
- func GetUser(user def.UserData, project string) def.UserData
- func MapNodeListToString(nodes []*html.Node, tran NodeTransform) []string
- func MapTreeToString(node *html.Node, tran NodeTransform) []string
- func OpenClient(ctx *context.Context, project string) *datastore.Client
- func PushUser(user def.UserData, project string) bool
- func QueryHtml(query string) *html.Node
- func RegisterUser(user def.UserData, project string) def.UserData
- func SerializeUserConfig(config UserConfig) string
- type NodePredicate
- type NodeTransform
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterChildren ¶
func FilterChildren(node *html.Node, pred NodePredicate) []*html.Node
func FilterNodeList ¶
func FilterNodeList(nodes []*html.Node, pred NodePredicate) []*html.Node
func FilterTree ¶
func FilterTree(node *html.Node, pred NodePredicate) []*html.Node
func MapNodeListToString ¶
func MapNodeListToString(nodes []*html.Node, tran NodeTransform) []string
func MapTreeToString ¶
func MapTreeToString(node *html.Node, tran NodeTransform) []string
func SerializeUserConfig ¶
func SerializeUserConfig(config UserConfig) string
Types ¶
type NodePredicate ¶
type NodeTransform ¶
type UserConfig ¶
type UserConfig struct { Version string `datastore:""` Timezone string `datastore:""` Subscriptions string `datastore:""` }
func DeserializeUserConfig ¶
func DeserializeUserConfig(config string) UserConfig
Click to show internal directories.
Click to hide internal directories.