Documentation
¶
Index ¶
- Constants
- func RenderTemplate(w http.ResponseWriter, name string, data interface{})
- type ActionFn
- type ApiServer
- func (s *ApiServer) ActionBalanceMulti(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ActionCreateAccount(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ActionCropWalletEth(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ActionUserLogout(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ActionUserRefreshToken(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ActionWalletEth(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) AuthenticateIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ChangeServerStatusIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CheckAPIJwtToken(r *http.Request, requestURI string) (bool, string)
- func (s *ApiServer) CheckJwtToken(r *http.Request, requestURI string) (bool, string)
- func (s *ApiServer) CorpAddGameIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CorpLogOutIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CorpLoginIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CorpUserAddPointIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CorpUserGetPointIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CorpUserLoginIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CreateCorp(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CreateCorpIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) CreateCorpToken(id, gameId, access string, expirationMin int64) (string, error)
- func (s *ApiServer) CreateJwtToken(userId int64, access string, expirationSec int64) (string, string, error)
- func (s *ApiServer) CreateToken(userName, access string, expirationSec int64) (string, error)
- func (s *ApiServer) CreateWallet() (privateKey, walletAddr string)
- func (s *ApiServer) GetServStatusIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) GetTokenIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) GetVersionIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) Health(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ModuleIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) RedisMessage(payload string)
- func (s *ApiServer) RenderAuthView(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) RenderMainView(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) ServerApiError(w http.ResponseWriter, r *http.Request, statusCode int, status int, ...)
- func (s *ApiServer) ServerError(w http.ResponseWriter, r *http.Request, errMsg string)
- func (s *ApiServer) Start()
- func (s *ApiServer) TestAuthenticate(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) TokenValid(accessToken string) (*jwt.Token, error)
- func (s *ApiServer) VerifyToken(accessToken string) (*jwt.Token, error)
- func (s *ApiServer) WriteHttpResponseOK(w http.ResponseWriter, result map[string]interface{})
- type DbIPInbound
- type DevSubList
- type Entry
- type EntryActions
- type GUser
- type User
- type UserToken
- type ValueAuthGoogleParam
- type ValueCorpParam
- type ValueTokenParam
- type ValueUserDataParam
Constants ¶
View Source
const ( ResultCodeServerErr = 11001 ResultCodeExistAccount = 22001 ResultCodeExistName = 22002 ResultCodeIncorrectAccount = 22003 ResultCodeIncorrectPassword = 22004 ResultCodeCorpExistCorpAccount = 23002 ResultCodeCorpServerErr = 23003 ResultCodeCorpIncorrectAccount = 22004 ResultCodeCorpIncorrectPassword = 22005 ResultCodeCorpNotActivate = 22006 ResultCodePreviousPointErr = 41100 ResultCodeUserKeyErr = 51001 ResultCodeParamErr = 51002 )
Variables ¶
This section is empty.
Functions ¶
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, name string, data interface{})
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func NewApiServer ¶
func (*ApiServer) ActionBalanceMulti ¶
func (s *ApiServer) ActionBalanceMulti(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ActionCreateAccount ¶
func (s *ApiServer) ActionCreateAccount(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ActionCropWalletEth ¶
func (s *ApiServer) ActionCropWalletEth(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ActionUserLogout ¶
func (s *ApiServer) ActionUserLogout(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ActionUserRefreshToken ¶
func (s *ApiServer) ActionUserRefreshToken(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ActionWalletEth ¶
func (s *ApiServer) ActionWalletEth(w http.ResponseWriter, r *http.Request)
func (*ApiServer) AuthenticateIndex ¶
func (s *ApiServer) AuthenticateIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ChangeServerStatusIndex ¶
func (s *ApiServer) ChangeServerStatusIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) CheckAPIJwtToken ¶
func (*ApiServer) CheckJwtToken ¶
func (*ApiServer) CorpAddGameIndex ¶
func (s *ApiServer) CorpAddGameIndex(w http.ResponseWriter, r *http.Request)
회사에 게임을 추가 한다.
func (*ApiServer) CorpLogOutIndex ¶
func (s *ApiServer) CorpLogOutIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) CorpLoginIndex ¶
func (s *ApiServer) CorpLoginIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) CorpUserAddPointIndex ¶
func (s *ApiServer) CorpUserAddPointIndex(w http.ResponseWriter, r *http.Request)
게임에 유저의 정보(로그인)를 얻어 온다.
func (*ApiServer) CorpUserGetPointIndex ¶
func (s *ApiServer) CorpUserGetPointIndex(w http.ResponseWriter, r *http.Request)
게임에 유저의 정보(로그인)를 얻어 온다.
func (*ApiServer) CorpUserLoginIndex ¶
func (s *ApiServer) CorpUserLoginIndex(w http.ResponseWriter, r *http.Request)
게임에 유저의 정보(로그인)를 얻어 온다.
func (*ApiServer) CreateCorp ¶
func (s *ApiServer) CreateCorp(w http.ResponseWriter, r *http.Request)
func (*ApiServer) CreateCorpIndex ¶
func (s *ApiServer) CreateCorpIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) CreateCorpToken ¶
func (*ApiServer) CreateJwtToken ¶
func (*ApiServer) CreateToken ¶
func (*ApiServer) CreateWallet ¶
func (*ApiServer) GetServStatusIndex ¶
func (s *ApiServer) GetServStatusIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) GetTokenIndex ¶
func (s *ApiServer) GetTokenIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) GetVersionIndex ¶
func (s *ApiServer) GetVersionIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ModuleIndex ¶
func (s *ApiServer) ModuleIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) RedisMessage ¶
func (*ApiServer) RenderAuthView ¶
func (s *ApiServer) RenderAuthView(w http.ResponseWriter, r *http.Request)
func (*ApiServer) RenderMainView ¶
func (s *ApiServer) RenderMainView(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ServerApiError ¶
func (*ApiServer) ServerError ¶
func (*ApiServer) TestAuthenticate ¶
func (s *ApiServer) TestAuthenticate(w http.ResponseWriter, r *http.Request)
func (*ApiServer) TokenValid ¶
func (*ApiServer) VerifyToken ¶
func (*ApiServer) WriteHttpResponseOK ¶
func (s *ApiServer) WriteHttpResponseOK(w http.ResponseWriter, result map[string]interface{})
type DbIPInbound ¶
type DevSubList ¶
type EntryActions ¶
type EntryActions struct {
// contains filtered or unexported fields
}
type ValueAuthGoogleParam ¶
type ValueCorpParam ¶
type ValueTokenParam ¶
type ValueTokenParam struct { RefreshToken string `json:"refresh_token"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.