services

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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