Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetHttpStrategy ¶
func SetHttpStrategy(s HttpSecurity)
Types ¶
type AlpacaStrategy ¶
type AlpacaStrategy struct{}
func (AlpacaStrategy) Add ¶
func (a AlpacaStrategy) Add(data *HttpReqData)
type HttpReqData ¶
type HttpReqData struct { BaseUrl string Path string Headers http.Header ParamUrl map[string]string // parameters in URL example: local?test=1&other=2 Method string DisableStrategy bool }
data for http request
type HttpSecurity ¶
type HttpSecurity struct { GlobalUrlBackend string // url for server request token etc Strategy HttpSecurityStrategy }
type HttpSecurityStrategy ¶
type HttpSecurityStrategy interface {
Add(data *HttpReqData)
}
type MongoDatabase ¶
func GetMongoDatabase ¶
func GetMongoDatabase() *MongoDatabase
type MongoParams ¶
var MongoParamsLocal MongoParams
Source Files
¶
Click to show internal directories.
Click to hide internal directories.