Documentation ¶
Index ¶
Constants ¶
const ( URIComingSoon500x500 = "https://imgur.com/nGHRg4P.png" URIComingSoon1920x823 = "https://imgur.com/qwPOOR2.png" URIUnderConstruction256x256 = "https://imgur.com/rBII01U.png" URISomethingWrong800x329 = "https://imgur.com/qG9iIo8.png" TextComingSoon = "Coming soon" TextUnderConstruction = "Under construction" TextSomethingWrong = "Something went wrong" ColorAcidGreen = "#b0bf1a" ColorAero = "#7cb9e8" )
constants
Variables ¶
This section is empty.
Functions ¶
func ComingSoonMessage ¶
func ComingSoonMessage() *linebot.FlexMessage
ComingSoonMessage function generates FlexMessage for coming soon message.
func SomethingWrongMessage ¶
func SomethingWrongMessage() *linebot.FlexMessage
SomethingWrongMessage function generates FlexMessage for something wrong message.
func UnderConstructionMessage ¶
func UnderConstructionMessage() *linebot.FlexMessage
UnderConstructionMessage function generates FlexMessage for under construction message.
Types ¶
type ExtBoxComponent ¶
type ExtBoxComponent struct { linebot.BoxComponent // add the available properties that are not supported in linebot sdk. Width string Height string BackgroundColor string BorderColor string BorderWidth string // none, light, normal, medium, semi-bold, or bold. CornerRadius string // none, xs, sm, md, lg, xl, or xxl. PaddingAll string // // none, xs, sm, md, lg, xl, or xxl. PaddingTop string // // none, xs, sm, md, lg, xl, or xxl. PaddingBottom string // // none, xs, sm, md, lg, xl, or xxl. PaddingStart string // // none, xs, sm, md, lg, xl, or xxl. PaddingEnd string // // none, xs, sm, md, lg, xl, or xxl. }
ExtBoxComponent type extends BoxComponent with some unsupported properties.
func (*ExtBoxComponent) FlexComponent ¶
func (*ExtBoxComponent) FlexComponent()
FlexComponent implements FlexComponent interface
func (*ExtBoxComponent) MarshalJSON ¶
func (c *ExtBoxComponent) MarshalJSON() ([]byte, error)
MarshalJSON method of ExtBoxComponent
type ExtBubbleContainer ¶
type ExtBubbleContainer struct { Type linebot.FlexContainerType Direction linebot.FlexBubbleDirectionType Header *ExtBoxComponent Hero *linebot.ImageComponent Body *ExtBoxComponent Styles *linebot.BubbleStyle }
ExtBubbleContainer type
func Bubble ¶
func Bubble(bubble IBubble) *ExtBubbleContainer
Bubble function creates a bubble container from the instance that implements IBubble interface.
func (*ExtBubbleContainer) FlexContainer ¶
func (*ExtBubbleContainer) FlexContainer()
FlexContainer implements FlexContainer interface
func (*ExtBubbleContainer) MarshalJSON ¶
func (c *ExtBubbleContainer) MarshalJSON() ([]byte, error)
MarshalJSON method of ExtBubbleContainer
type ExtCarouselContainer ¶
type ExtCarouselContainer struct { // Type linebot.FlexContainerType linebot.CarouselContainer Contents []*ExtBubbleContainer }
ExtCarouselContainer type
func ComingSoonContents ¶
func ComingSoonContents(text string) *ExtCarouselContainer
ComingSoonContents function generates ExtCarouselContainer for coming soon box.
func SomethingWrongContents ¶
func SomethingWrongContents() *ExtCarouselContainer
SomethingWrongContents function generates ExtCarouselContainer for warning box.
func WarningContents ¶
func WarningContents(text, img string, ratio linebot.FlexImageAspectRatioType) *ExtCarouselContainer
WarningContents function generates ExtCarouselContainer for warning box.
func (*ExtCarouselContainer) Dump ¶
func (ec *ExtCarouselContainer) Dump()
Dump function dumps the instance of ExtCarouselContainer with json format.
func (*ExtCarouselContainer) FlexContainer ¶
func (*ExtCarouselContainer) FlexContainer()
FlexContainer implements FlexContainer interface
func (*ExtCarouselContainer) MarshalJSON ¶
func (c *ExtCarouselContainer) MarshalJSON() ([]byte, error)
MarshalJSON method of ExtCarouselContainer
type IBubble ¶
type IBubble interface { Type() linebot.FlexContainerType Direction() linebot.FlexBubbleDirectionType Header() *ExtBoxComponent Hero() *linebot.ImageComponent Body() *ExtBoxComponent Styles() *linebot.BubbleStyle }
IBubble interface is used for bubble container.