Documentation ¶
Index ¶
- Constants
- type Mailer
- type Server
- 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) SendMessage(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
- 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 cm.ISettings) (cm.IServer, error)
Constants ¶
View Source
const ( ErrHostIsEmpty = "host is empty" ErrPortIsNotSet = "port is not set" ErrUsernameIsEmpty = "username is empty" ErrUserAgentIsEmpty = "user agent is empty" )
View Source
const ( RpcErrorCode_MailerError = 1 RpcErrorCode_RecipientIsNotSet = 2 RpcErrorCode_SubjectIsNotSet = 3 RpcErrorCode_MessageIsNotSet = 4 )
Codes.
View Source
const ( RpcErrorMsgF_MailerError = "mailer error: %s" RpcErrorMsg_RecipientIsNotSet = "recipient is not set" RpcErrorMsg_SubjectIsNotSet = "subject is not set" RpcErrorMsg_MessageIsNotSet = "message is not set" )
Messages.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
Mailer is an e-mail sender. It sends e-mail messages using the SMTP protocol.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetListenDsn ¶
func (*Server) GetMustStopAB ¶ added in v0.0.40
func (*Server) GetStopChannel ¶
func (*Server) GetSubRoutinesWG ¶ added in v0.0.40
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) SendMessage ¶
func (srv *Server) SendMessage(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
func (*Server) ShowDiagnosticData ¶
func (srv *Server) ShowDiagnosticData(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.