nenews_api

package
v0.0.0-...-39147ba Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2016 License: BSD-2-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalNews

func NormalNews(item map[string]interface{}) (r *nenews_types.NormalNews, er error)

NormalNews:

get full information about a normal news by its basic information
basic information in key-value format

func PhotosetNews

func PhotosetNews(item map[string]interface{}) (r *nenews_types.PhotoSet, er error)

PhotosetNews:

get full information about a photo set news by its basic information
basic information in key-value format

func Reply

func Reply(id string, boardId string) ([]nenews_types.Reply, error)

Reply:

get news reply by (id, boardId)

Types

type ChannController

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

func NewChannController

func NewChannController(listId string, delayTime time.Duration) *ChannController

func ResumeChannController

func ResumeChannController(conf map[string]interface{}) (*ChannController, error)

func (*ChannController) DumpTaskStatus

func (p *ChannController) DumpTaskStatus() (Status []byte)

func (*ChannController) FetchNew

func (p *ChannController) FetchNew() ([]*Interface.Message, error)

func (*ChannController) GetDelayBetweenCatchRound

func (p *ChannController) GetDelayBetweenCatchRound() time.Duration

func (*ChannController) Hash

func (p *ChannController) Hash() string

func (*ChannController) Type

func (p *ChannController) Type() string

type TopicController

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

func NewTopicController

func NewTopicController(specialId string, delayTime time.Duration) *TopicController

func ResumeTopicController

func ResumeTopicController(conf map[string]interface{}) (*TopicController, error)

func (*TopicController) DumpTaskStatus

func (p *TopicController) DumpTaskStatus() (Status []byte)

func (*TopicController) FetchNew

func (p *TopicController) FetchNew() ([]*Interface.Message, error)

func (*TopicController) GetDelayBetweenCatchRound

func (p *TopicController) GetDelayBetweenCatchRound() time.Duration

func (*TopicController) Hash

func (p *TopicController) Hash() string

func (*TopicController) Type

func (p *TopicController) Type() string

Jump to

Keyboard shortcuts

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