apis

package
v0.0.0-...-c15dfdb Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindFacebookAccount

func BindFacebookAccount(ctx *iris.Context)

BindFacebookAccount ... Binding Faceboock account with receving post body

func Login

func Login(ctx *iris.Context)

Login ... Login with receving post body

func LoginWithFacebook

func LoginWithFacebook(ctx *iris.Context)

LoginWithFacebook ... Login with receving post body

func Register

func Register(ctx *iris.Context)

Register ... Register with receving post body

func ResponseErrorMessage

func ResponseErrorMessage(ctx *iris.Context, message string)

ResponseErrorMessage ... Function to response error to clients

func ResponseLoginTokenError

func ResponseLoginTokenError(ctx *iris.Context, err error) bool

ResponseLoginTokenError ... Function to response error to clients, return true if error occurs

func ResponseSystemError

func ResponseSystemError(ctx *iris.Context, err error) bool

ResponseSystemError ... Function to response error to clients, return true if error occurs

func UnbindFacebookAccount

func UnbindFacebookAccount(ctx *iris.Context)

UnbindFacebookAccount ... Unbinding Faceboock account with receving post body

func ValidateForm

func ValidateForm(ctx *iris.Context, formObject interface{}) error

ValidateForm ... validating form by its definations

func ValidateLogin

func ValidateLogin(ctx *iris.Context)

ValidateLogin ... Validating login with ID and LoginToken

Types

type ResponseError

type ResponseError struct {
	ErrorMessage string `json:"error"`
}

ResponseError ... struct for error responses

Jump to

Keyboard shortcuts

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