comments

package
v0.0.0-...-034af97 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(config *conf.Configuration)

Types

type ParsedComment

type ParsedComment struct {
	ID       string `json:"id"`
	ParentID string `json:"parent"`
	Author   string `json:"author"`
	Verified bool   `json:"verified"`
	Twitter  string `json:"twitter"`
	MD5      string `json:"md5"`
	URL      string `json:"www"`
	Body     string `json:"body"`
	Date     string `json:"date"`
}

func ParseRaw

func ParseRaw(data *RawComment) *ParsedComment

type RawComment

type RawComment struct {
	ID       string `json:"id"`
	ParentID string `json:"parent"`
	Author   string `json:"author"`
	Twitter  string `json:"twitter"`
	Email    string `json:"email"`
	Verified bool   `json:"verified"`
	URL      string `json:"www"`
	IP       string `json:"ip"`
	Body     string `json:"body"`
	Date     string `json:"date"`
}

func (*RawComment) IsSuspicious

func (r *RawComment) IsSuspicious() bool

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *conf.Configuration) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the Comments Server

Jump to

Keyboard shortcuts

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