services

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cache = &cache{data: make(map[string]interface{})}

Functions

This section is empty.

Types

type Position

type Position struct {
	Title       string `json:"title"`
	ID          string `json:"id"`
	URL         string `json:"url"`
	Team        string `json:"team"`
	Location    string `json:"location"`
	Commitment  string `json:"commitment"`
	Description string `json:"description"`
	Summary     string `json:"summary"`
}

type PositionsProvider

type PositionsProvider interface {
	Find() (*PositionsResponse, error)
}

func NewPositionsProvider

func NewPositionsProvider(conf *config.Config) PositionsProvider

type PositionsResponse

type PositionsResponse struct {
	Teams     []string    `json:"teams"`
	Positions []*Position `json:"positions"`
}

type Post

type Post struct {
	Title        string `json:"title"`
	Description  string `json:"description"`
	Date         string `json:"date"`
	Link         string `json:"link"`
	Author       string `json:"author"`
	AuthorAvatar string `json:"author_avatar"`
	Image        string `json:"featured_image"`
}

type PostProvider

type PostProvider interface {
	Find(typ string) (*PostsResponse, error)
}

func NewPostProvider

func NewPostProvider(conf *config.Config) PostProvider

type PostsResponse

type PostsResponse struct {
	Posts []*Post `json:"Posts"`
}

Jump to

Keyboard shortcuts

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