structs

package
v0.0.0-...-354316f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

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

func NewArticle

func NewArticle(id *Id, src *Source, title string, body string, link string, utime int64, raw string) *Article

func (*Article) Body

func (self *Article) Body() string

func (*Article) ConvertExternal

func (self *Article) ConvertExternal() *external.Article

func (*Article) Id

func (self *Article) Id() *Id
func (self *Article) Link() string

func (*Article) Raw

func (self *Article) Raw() string

func (*Article) Src

func (self *Article) Src() *Source

func (*Article) Title

func (self *Article) Title() string

func (*Article) Unixtime

func (self *Article) Unixtime() int64

type Id

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

func NewId

func NewId(id []byte) *Id

func ParseStringId

func ParseStringId(id_base string) (*Id, error)

func (*Id) String

func (self *Id) String() string

func (*Id) Value

func (self *Id) Value() []byte

type Source

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

func NewSource

func NewSource(id *Id, title string, src_type *SourceType, val string) *Source

func (*Source) ConvertExternal

func (self *Source) ConvertExternal() *external.Source

func (*Source) Id

func (self *Source) Id() *Id

func (*Source) Title

func (self *Source) Title() string

func (*Source) Type

func (self *Source) Type() *SourceType

func (*Source) Value

func (self *Source) Value() string

type SourceType

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

func NewSourceType

func NewSourceType(id *Id, name string, cmd string, user_create bool) *SourceType

func (*SourceType) Command

func (self *SourceType) Command() string

func (*SourceType) ConvertExternal

func (self *SourceType) ConvertExternal() *external.SourceType

func (*SourceType) Id

func (self *SourceType) Id() *Id

func (*SourceType) IsUserCreate

func (self *SourceType) IsUserCreate() bool

func (*SourceType) Name

func (self *SourceType) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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