shared

package
v0.0.0-...-5f6171a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StorageClient *storage.Client
	Bkt           *storage.BucketHandle
)
View Source
var (
	DatastoreClient *datastore.Client
)
View Source
var FbConfig = &oauth2.Config{
	ClientID:     beego.AppConfig.String("facebook_client_id"),
	ClientSecret: beego.AppConfig.String("facebook_client_secret"),
	RedirectURL:  beego.AppConfig.String("facebook_redirect_url"),
	Scopes:       []string{"email"},
	Endpoint:     facebook.Endpoint,
}

Functions

func ConnectGCS

func ConnectGCS(projId string)

func ConnectGDS

func ConnectGDS(projId string)

func CreateObjectPath

func CreateObjectPath(obj string) string

Types

type Engagement

type Engagement struct {
	Reaction_count       int
	Comment_count        int
	Share_count          int
	Comment_plugin_count int
}

type EngagementResponse

type EngagementResponse struct {
	Id         int
	Engagement Engagement
}

type ErrorDescription

type ErrorDescription struct {
	Message   string `message`
	Type      string `type`
	Code      int    `code`
	FbtraceId int    `fbtrace_id`
}

type FbError

type FbError struct {
	Error ErrorDescription `error`
}

type FbUser

type FbUser struct {
	Id   string
	Name string
}

type JSONResponse

type JSONResponse struct {
	Error   string
	Message string
}

type LikeSummary

type LikeSummary struct {
	Total_count int
}

type PostLikes

type PostLikes struct {
	Summary LikeSummary
}

type PostResult

type PostResult struct {
	Id      string
	Post_id string
}

type PostShares

type PostShares struct {
	Count int
}

type PostStatsResult

type PostStatsResult struct {
	Likes  PostLikes
	Shares PostShares
}

Jump to

Keyboard shortcuts

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