Documentation ¶
Index ¶
Constants ¶
View Source
const ( LineEventTypeMessage = LineEventType("message") LineEventTypeFollow = LineEventType("follow") LineEventTypeUnfollow = LineEventType("unfollow") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error interface { Error() string // ClientMsg returns messages clients should know ClientMsg() string }
func NewInternalError ¶
func NewParameterError ¶
type ExternalError ¶
type ExternalError struct {
// contains filtered or unexported fields
}
ExternalError is used when calling external service goes wrong
func (ExternalError) ClientMsg ¶
func (e ExternalError) ClientMsg() string
func (ExternalError) Error ¶
func (e ExternalError) Error() string
func (ExternalError) StatusCode ¶
func (e ExternalError) StatusCode() int
type InternalError ¶
type InternalError struct {
// contains filtered or unexported fields
}
InternalError is used when process goes wrong
func (InternalError) ClientMsg ¶
func (e InternalError) ClientMsg() string
func (InternalError) Error ¶
func (e InternalError) Error() string
type LineEvent ¶
type LineEvent struct { ExternalMemberID string EventType LineEventType ReplyToken string EventContent []byte }
type LineEventType ¶
type LineEventType string
type LineWebhook ¶
type ParameterError ¶
type ParameterError struct {
// contains filtered or unexported fields
}
ParameterError is used when parameters are missing or invalid
func (ParameterError) ClientMsg ¶
func (e ParameterError) ClientMsg() string
func (ParameterError) Error ¶
func (e ParameterError) Error() string
type ResourceNotFoundError ¶
type ResourceNotFoundError struct {
// contains filtered or unexported fields
}
ResourceNotFoundError is used when resources cannot be found
func (ResourceNotFoundError) ClientMsg ¶
func (e ResourceNotFoundError) ClientMsg() string
func (ResourceNotFoundError) Error ¶
func (e ResourceNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.