commento

package
v0.0.0-...-a540e09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(body *Commenter) error

Types

type Commenter

type Commenter struct {
	Email    string `json:"email"`
	Name     string `json:"name"`
	Website  string `json:"website"`
	Password string `json:"password"`
}

type CommenterSession

type CommenterSession struct {
	CommenterToken string    `json:"commenterToken"`
	CommenterHex   string    `json:"commenterHex"`
	CreationDate   time.Time `json:"creationDate"`
}

func Login

func Login(body *Request) (*CommenterSession, error)

type Comments

type Comments struct {
	Count   int    `json:"count"`
	Success string `json:"success"`
}

func GetCommentCount

func GetCommentCount(body *Page) (*Comments, error)

type Page

type Page struct {
	Domain       string `json:"domain"`
	Path         string `json:"path"`
	IsLocked     bool   `json:"isLocked"`
	CommentCount int    `json:"commentCount"`
}

type Request

type Request struct {
	Email    *string `json:"email"`
	Password *string `json:"password"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL