model

package
v0.0.0-...-09e72e1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

package model contains all the required models for commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cauthor

type Cauthor struct {
	XMLName      xml.Name      `xml:"author,omitempty" json:"author,omitempty"`
	Cemail       *Cemail       `xml:"http://disqus.com email,omitempty" json:"email,omitempty"`
	CisAnonymous *CisAnonymous `xml:"http://disqus.com isAnonymous,omitempty" json:"isAnonymous,omitempty"`
	Cname        *Cname        `xml:"http://disqus.com name,omitempty" json:"name,omitempty"`
	Cusername    *Cusername    `xml:"http://disqus.com username,omitempty" json:"username,omitempty"`
}

type Ccategory

type Ccategory struct {
	XMLName        xml.Name    `xml:"category,omitempty" json:"category,omitempty"`
	AttrDsqSpaceid string      `xml:"http://disqus.com/disqus-internals id,attr"  json:",omitempty"`
	Cforum         *Cforum     `xml:"http://disqus.com forum,omitempty" json:"forum,omitempty"`
	CisDefault     *CisDefault `xml:"http://disqus.com isDefault,omitempty" json:"isDefault,omitempty"`
	Ctitle         *Ctitle     `xml:"http://disqus.com title,omitempty" json:"title,omitempty"`
}

type CcreatedAt

type CcreatedAt struct {
	XMLName xml.Name `xml:"createdAt,omitempty" json:"createdAt,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Cdisqus

type Cdisqus struct {
	XMLName                    xml.Name   `xml:"disqus,omitempty" json:"disqus,omitempty"`
	AttrXmlnsdsq               string     `xml:"xmlns dsq,attr"  json:",omitempty"`
	AttrXsiSpaceschemaLocation string     `xml:"http://www.w3.org/2001/XMLSchema-instance schemaLocation,attr"  json:",omitempty"`
	Attrxmlns                  string     `xml:"xmlns,attr"  json:",omitempty"`
	AttrXmlnsxsi               string     `xml:"xmlns xsi,attr"  json:",omitempty"`
	Ccategory                  *Ccategory `xml:"http://disqus.com category,omitempty" json:"category,omitempty"`
	Cpost                      []*Cpost   `xml:"http://disqus.com post,omitempty" json:"post,omitempty"`
	Cthread                    []*Cthread `xml:"http://disqus.com thread,omitempty" json:"thread,omitempty"`
}

type Cemail

type Cemail struct {
	XMLName xml.Name `xml:"email,omitempty" json:"email,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Cforum

type Cforum struct {
	XMLName xml.Name `xml:"forum,omitempty" json:"forum,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Cid

type Cid struct {
	XMLName xml.Name `xml:"id,omitempty" json:"id,omitempty"`
}

type CipAddress

type CipAddress struct {
	XMLName xml.Name `xml:"ipAddress,omitempty" json:"ipAddress,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type CisAnonymous

type CisAnonymous struct {
	XMLName xml.Name `xml:"isAnonymous,omitempty" json:"isAnonymous,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type CisClosed

type CisClosed struct {
	XMLName xml.Name `xml:"isClosed,omitempty" json:"isClosed,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type CisDefault

type CisDefault struct {
	XMLName xml.Name `xml:"isDefault,omitempty" json:"isDefault,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type CisDeleted

type CisDeleted struct {
	XMLName xml.Name `xml:"isDeleted,omitempty" json:"isDeleted,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type CisSpam

type CisSpam struct {
	XMLName xml.Name `xml:"isSpam,omitempty" json:"isSpam,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}
type Clink struct {
	XMLName xml.Name `xml:"link,omitempty" json:"link,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Cmessage

type Cmessage struct {
	XMLName xml.Name `xml:"message,omitempty" json:"message,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Cname

type Cname struct {
	XMLName xml.Name `xml:"name,omitempty" json:"name,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Comment

type Comment struct {
	Id            int      `db:"id"`
	Tid           int      `db:"tid"`
	Parent        *int     `db:"parent"`
	Created       float64  `db:"created"`
	Modified      *float64 `db:"modified"`
	Mode          *int     `db:"mode"`
	RemoteAddress *string  `db:"remote_addr"`
	Text          *string  `db:"text"`
	Author        *string  `db:"author"`
	Email         *string  `db:"email"`
	Website       *string  `db:"website"`
	Likes         int      `db:"likes"`
	Dislikes      int      `db:"dislikes"`
	Voters        []byte   `db:"voters"`
}

Comment represents an isso commenting comment

type Cparent

type Cparent struct {
	XMLName        xml.Name `xml:"parent,omitempty" json:"parent,omitempty"`
	AttrDsqSpaceid string   `xml:"http://disqus.com/disqus-internals id,attr"  json:",omitempty"`
}

type Cpost

type Cpost struct {
	XMLName        xml.Name    `xml:"post,omitempty" json:"post,omitempty"`
	AttrDsqSpaceid string      `xml:"http://disqus.com/disqus-internals id,attr"  json:",omitempty"`
	Cauthor        *Cauthor    `xml:"http://disqus.com author,omitempty" json:"author,omitempty"`
	CcreatedAt     *CcreatedAt `xml:"http://disqus.com createdAt,omitempty" json:"createdAt,omitempty"`
	Cid            *Cid        `xml:"http://disqus.com id,omitempty" json:"id,omitempty"`
	CipAddress     *CipAddress `xml:"http://disqus.com ipAddress,omitempty" json:"ipAddress,omitempty"`
	CisDeleted     *CisDeleted `xml:"http://disqus.com isDeleted,omitempty" json:"isDeleted,omitempty"`
	CisSpam        *CisSpam    `xml:"http://disqus.com isSpam,omitempty" json:"isSpam,omitempty"`
	Cmessage       *Cmessage   `xml:"http://disqus.com message,omitempty" json:"message,omitempty"`
	Cparent        *Cparent    `xml:"http://disqus.com parent,omitempty" json:"parent,omitempty"`
	Cthread        []*Cthread  `xml:"http://disqus.com thread,omitempty" json:"thread,omitempty"`
}

type Cthread

type Cthread struct {
	XMLName        xml.Name    `xml:"thread,omitempty" json:"thread,omitempty"`
	AttrDsqSpaceid string      `xml:"http://disqus.com/disqus-internals id,attr"  json:",omitempty"`
	Cauthor        *Cauthor    `xml:"http://disqus.com author,omitempty" json:"author,omitempty"`
	Ccategory      *Ccategory  `xml:"http://disqus.com category,omitempty" json:"category,omitempty"`
	CcreatedAt     *CcreatedAt `xml:"http://disqus.com createdAt,omitempty" json:"createdAt,omitempty"`
	Cforum         *Cforum     `xml:"http://disqus.com forum,omitempty" json:"forum,omitempty"`
	Cid            *Cid        `xml:"http://disqus.com id,omitempty" json:"id,omitempty"`
	CipAddress     *CipAddress `xml:"http://disqus.com ipAddress,omitempty" json:"ipAddress,omitempty"`
	CisClosed      *CisClosed  `xml:"http://disqus.com isClosed,omitempty" json:"isClosed,omitempty"`
	CisDeleted     *CisDeleted `xml:"http://disqus.com isDeleted,omitempty" json:"isDeleted,omitempty"`
	Clink          *Clink      `xml:"http://disqus.com link,omitempty" json:"link,omitempty"`
	Cmessage       *Cmessage   `xml:"http://disqus.com message,omitempty" json:"message,omitempty"`
	Ctitle         *Ctitle     `xml:"http://disqus.com title,omitempty" json:"title,omitempty"`
}

type Ctitle

type Ctitle struct {
	XMLName xml.Name `xml:"title,omitempty" json:"title,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Cusername

type Cusername struct {
	XMLName xml.Name `xml:"username,omitempty" json:"username,omitempty"`
	SValue  string   `xml:",chardata" json:",omitempty"`
}

type Thread

type Thread struct {
	Id    int     `db:"id"`
	Uri   *string `db:"uri"`
	Title *string `db:"title"`
}

Thread represents an isso commenting thread

Jump to

Keyboard shortcuts

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