Documentation
¶
Index ¶
Constants ¶
View Source
const ( CREATE_BOARD_ADMIN = 1 CREATE_BOARD_TYPE = 0 /* board */ CREATE_BOARD_NAME = "board name" CREATE_BOARD_INFO = "description for this board" CREATE_BOARD_ROWS = 15 CREATE_BOARD_WIDTH = 1000 CREATE_BOARD_USE_CAT = 1 CREATE_BOARD_LV_LIST = 0 CREATE_BOARD_LV_VIEW = 0 CREATE_BOARD_LV_WRITE = 1 /* 0 is not allowed */ CREATE_BOARD_LV_COMMENT = 1 /* 0 is not allowed */ CREATE_BOARD_LV_DOWNLOAD = 1 /* 0 is not allowed */ CREATE_BOARD_PT_VIEW = 0 CREATE_BOARD_PT_WRITE = 5 CREATE_BOARD_PT_COMMENT = 2 CREATE_BOARD_PT_DOWNLOAD = -10 )
게시판 생성 시 기본값 정의
View Source
const ( BOARD_DEFAULT = 0 BOARD_GALLERY = 1 BOARD_BLOG = 2 BOARD_SHOP = 3 )
게시판 타입 목록
Variables ¶
This section is empty.
Functions ¶
func GetJWTAccessRefresh ¶ added in v1.0.2
JWT 유효 기간 (access: hours, refresh: days) 반환
Types ¶
type Config ¶
type Config struct { Version string Port string URL string URLPrefix string Title string ProfileSize string ContentInsertSize string ThumbnailSize string FullSize string FileSizeLimit string DBHost string DBUser string DBPass string DBName string Prefix string DBPort string DBSocket string DBMaxIdle string DBMaxOpen string JWTSecretKey string JWTAccessHours string JWTRefreshDays string GmailID string GmailAppPassword string OAuthGoogleID string OAuthGoogleSecret string OAuthKakaoID string OAuthKakaoSecret string OpenaiKey string }
var Env Config
설정 저장한 변수
Click to show internal directories.
Click to hide internal directories.