Documentation
¶
Index ¶
- Constants
- type Channel
- type ConclusionJobErrType
- type Event
- func NewEventCreateOfficeUsage(env, messageTemplate string, channels []Channel) Event
- func NewEventDeleteOffice(env, messageTemplate string, channels []Channel) Event
- func NewEventFailConclusionJob(env, messageTemplate string, channels []Channel) Event
- func NewEventFailMFCBoxJob(env, messageTemplate string, channels []Channel) Event
- func NewEventForcefullyAddUser(env, messageTemplate string, channels []Channel) Event
- func NewEventInternalUserAdd(env, messageTemplate string, channels []Channel) Event
- func NewEventInternalUserLogin(env, messageTemplate string, channels []Channel) Event
- func NewEventInternalUserUpdateRole(env, messageTemplate string, channels []Channel) Event
- func NewEventProxyLogin(env, messageTemplate string, channels []Channel) Event
- func NewEventTurnOffLegalCheck(env, messageTemplate string, channels []Channel) Event
- func NewEventUpdateUserSetting(env, messageTemplate string, channels []Channel) Event
- type Name
Constants ¶
const ( ErrMsgFmtEN = "We got a failed process due to %s error, please check it.%s" ErrMsgSecomEN = "SECOM" ErrMsgSendGridEN = "SendGrid’s" ErrMsgPDFFormatEN = "PDF format" ErrMsgOthersEN = "some" ErrMsgSecomJP = "下記事業者にて締結処理に失敗した書類が発生しています。" ErrMsgSendGridJP = "" /* 179-byte string literal not displayed */ ErrMsgPDFFormatJP = "" /* 191-byte string literal not displayed */ ErrMsgOthersJP = "" /* 287-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConclusionJobErrType ¶
type ConclusionJobErrType string
var ( ErrTypeSecomFailure ConclusionJobErrType = "secom_failure" ErrTypeSendGridIssue ConclusionJobErrType = "sendGrid_issue" ErrTypeInvalidPDFFormat ConclusionJobErrType = "invalid_pdf_format" ErrTypeOthers ConclusionJobErrType = "others" )
type Event ¶
type Event interface { Name() Name Channels() []Channel BuildMessage(payload map[string]interface{}) string Env() string }
Event provides methods to handle a notification event
func NewEventCreateOfficeUsage ¶
NewEventCreateOfficeUsage return an instance of Event interface
func NewEventDeleteOffice ¶
NewEventDeleteOffice returns an instance of Event interface
func NewEventFailMFCBoxJob ¶
func NewEventForcefullyAddUser ¶
NewEventForcefullyAddUser returns an instance of Event interface
func NewEventInternalUserAdd ¶
NewEventInternalUserAdd returns an instance of Event interface
func NewEventInternalUserLogin ¶
NewEventInternalUserLogin returns an instance of Event interface
func NewEventInternalUserUpdateRole ¶
NewEventInternalUserUpdateRole returns an instance of Event interface
func NewEventProxyLogin ¶
NewEventProxyLogin returns an instance of Event interface
func NewEventTurnOffLegalCheck ¶
NewEventTurnOffLegalCheck returns an instance of Event interface
func NewEventUpdateUserSetting ¶
NewEventUpdateUserSetting return an instance of Event interface
type Name ¶
type Name int
Name is the enum of event types
const ( // event name iota value EventNameInternalUserLogin Name = iota + 1 EventNameInternalUserAdd EventNameInternalUserUpdateRole EventNameDeleteOffice EventNameForcefullyAddUser EventNameCreateOfficeUsage EventNameUpdateUserSetting EventNameFailConclusionJob EventNameFailMFCBoxJob EventNameProxyLogin EventNameTurnOffLegalCheck )