api

package
v0.0.0-...-0ca54e2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPResponse

func HTTPResponse(w http.ResponseWriter, req *http.Request, res Response)

HTTPResponse 함수는 Response 구조체를 HTTP로 응답합니다

Types

type API

API 인터페이스는 API에서 구현해야할 메서드를 가집니다

type Response

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Response 객체는 API에서 응답하는 Response를 정의합니다

Jump to

Keyboard shortcuts

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