webservice

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TweetWebservice

type TweetWebservice struct {
	Routes  *mux.Router
	Service *service.TweetService
}

TweetWebservice define a tweet webservice

func NewTweetWebservice

func NewTweetWebservice(router *mux.Router, tweetService *service.TweetService) *TweetWebservice

NewTweetWebservice initialize the twall API for tweet

func (*TweetWebservice) GetAll

func (tws *TweetWebservice) GetAll(w http.ResponseWriter, r *http.Request)

GetAll return all tweets

Jump to

Keyboard shortcuts

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