rpcbotinterfaceobjects

package
v0.0.0-...-087e281 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	ServiceCallCount int
}

func (*Bot) ProcessPost

func (this *Bot) ProcessPost(in *BotInput, out *BotOutput) error

test ProcessPost function - turn the input to uppercase

type BotInput

type BotInput struct {
	Content string
}

func (*BotInput) GetContent

func (this *BotInput) GetContent() string

func (*BotInput) SetContent

func (this *BotInput) SetContent(NewContent string)

type BotOutput

type BotOutput struct {
	Content string
}

func (*BotOutput) GetContent

func (this *BotOutput) GetContent() string

func (*BotOutput) SetContent

func (this *BotOutput) SetContent(NewContent string)

type Post

type Post struct {
	Id       int64
	Created  time.Time
	PostDate time.Time
	Site     string
	PostId   string
	Score    int
	Title    string
	Url      string
	User     string
	UserIP   string
	BodyType string
	Body     string
}

holds a single post

func NewPost

func NewPost(site, postid, postdate, score, title, url, user string) Post

Jump to

Keyboard shortcuts

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