usecase

package
v0.0.0-...-ee3c536 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootMemcached

func BootMemcached() *memcached.Memcached

BootMemcached returns the pointer to memcached.Memcached to spin up the caching layer.

func NewPost

func NewPost(postService app.PostService) app.Handler

NewPost ...

func NewUser

func NewUser(userService app.UserService) app.UserHandler

NewUser ...

func Unmarshaler

func Unmarshaler(data string, val interface{}) (interface{}, error)

Unmarshaler handles the unmarshaling of data

Types

type UserResponse

type UserResponse struct {
	StatusCode uint        `json:"status_code"`
	Message    string      `json:"message"`
	Success    bool        `json:"success"`
	Data       interface{} `json:"data"`
}

UserResponse represents a user response

Jump to

Keyboard shortcuts

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