Documentation ¶
Index ¶
- Constants
- type Server
- func (srv *Server) CheckCaptcha(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
- func (srv *Server) CreateCaptcha(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
- func (srv *Server) GetCaptchaManagerListenDsn() (dsn string)
- func (srv *Server) GetListenDsn() (dsn string)
- func (srv *Server) GetMustStopAB() *atomic.Bool
- func (srv *Server) GetStopChannel() *chan bool
- func (srv *Server) GetSubRoutinesWG() *sync.WaitGroup
- func (srv *Server) Ping(_ *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
- func (srv *Server) ReportStart()
- func (srv *Server) ShowDiagnosticData(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
- func (srv *Server) Start() (err error)
- func (srv *Server) Stop() (err error)
- func (srv *Server) UseConstructor(stn base.ISettings) (base.IServer, error)
Constants ¶
View Source
const ( RpcErrorCode_TaskIdIsNotSet = 1 RpcErrorCode_AnswerIsNotSet = 2 RpcErrorCode_CheckError = 3 RpcErrorCode_CreateError = 4 )
Codes.
View Source
const ( RpcErrorMsg_TaskIdIsNotSet = "task ID is not set" RpcErrorMsg_AnswerIsNotSet = "answer is not set" RpcErrorMsgF_CheckError = "check error: %s" RpcErrorMsgF_CreateError = "captcha creation error: %s" )
Messages.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CheckCaptcha ¶
func (srv *Server) CheckCaptcha(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
func (*Server) CreateCaptcha ¶
func (srv *Server) CreateCaptcha(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
func (*Server) GetCaptchaManagerListenDsn ¶
func (*Server) GetListenDsn ¶
func (*Server) GetMustStopAB ¶
func (*Server) GetStopChannel ¶
func (*Server) GetSubRoutinesWG ¶
func (*Server) Ping ¶
func (srv *Server) Ping(_ *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
func (*Server) ReportStart ¶
func (srv *Server) ReportStart()
func (*Server) ShowDiagnosticData ¶
func (srv *Server) ShowDiagnosticData(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
func (*Server) UseConstructor ¶
Click to show internal directories.
Click to hide internal directories.