Documentation
¶
Index ¶
- Constants
- Variables
- func CreateConn(addr string) (conn *grpc.ClientConn, ctx context.Context, closeCtx context.CancelFunc, ...)
- func Dispatch(f interface{}, args ...interface{}) error
- func Hash(data, salt string) string
- func ParseConfig(path string, out interface{}) error
- type ErrCode
- type GroupsType
- type ResponseError
- type ResponseModel
Constants ¶
View Source
const ( KeyErrorNotFound = "not found" KeyErrorExist = "already exists" KeyErrorSave = "create is failed" KeyErrorUpdate = "update is failed" KeyErrorDelete = "delete is failed" KeyErorrAccessDenied = "access denied" KeyErrorInvalidParams = "invalid params" KeyErrorParse = "parse is failed" KeyErrorOpen = "open is failed" KeyErrorClose = "close is failed" KeyErrorRead = "read is failed" KeyErrorWrite = "write is faleid" KeyErrorGenerate = "generate is falied" KeyErrorSend = "send is faied" )
Variables ¶
View Source
var C chan os.Signal
View Source
var CloseCtx context.CancelFunc
View Source
var Ctx context.Context
View Source
var Wg *sync.WaitGroup
Functions ¶
func CreateConn ¶
func CreateConn(addr string) (conn *grpc.ClientConn, ctx context.Context, closeCtx context.CancelFunc, err error)
func ParseConfig ¶
Types ¶
type GroupsType ¶
type GroupsType string
const ( Observer GroupsType = "observer" Monitor GroupsType = "monitor" WS GroupsType = "ws" Bot GroupsType = "bot" Support GroupsType = "support" Valid GroupsType = "valid" Auth GroupsType = "auth" User GroupsType = "user" Recrut GroupsType = "recrut" Event GroupsType = "event" Office GroupsType = "office" Product GroupsType = "product" News GroupsType = "news" Knows GroupsType = "knows" Filling GroupsType = "filling" Group GroupsType = "group" Quota GroupsType = "quota" Cert GroupsType = "cert" Proposal GroupsType = "proposal" Comment GroupsType = "comment" Notif GroupsType = "notif" Transatcion GroupsType = "transatcion" Skillpoint GroupsType = "skillpoint" Analitic GroupsType = "analitic" Uploads GroupsType = "uploads" Phone GroupsType = "phone" Email GroupsType = "email" Xtech GroupsType = "xtech" )
type ResponseError ¶
ResponseError модель ошибки
type ResponseModel ¶
type ResponseModel struct { Success bool `json:"success"` Result interface{} `json:"result"` }
ResponseModel модель ответа
Click to show internal directories.
Click to hide internal directories.