Skip to content

Import path: gitlab.soludian.com/soludian/fountain/libs/noti/firebase_message

firebase_message

go
import "gitlab.soludian.com/soludian/fountain/libs/noti/firebase_message"

Index

Constants

go
const (
    KDefaultSMTPPort = 465
)

go
const KPackageName = "firebase_message"

Variables

go
var GetFountainInstance = Lib.GetFountainInstance

go
var GetFountainManager = Lib.GetFountainManager

Sử dụng khi config instance ở dạng key:value; Nếu config instance ở dạng key:array thì sử dụng hàm InstallFountainInstances Nếu config ở dạng key:array thì sẽ chỉ install config phần tử đầu tiên mà thôi

Install with config format <key>:<value>; eg: firebase_message:<value>

Usage:

config.yaml:

	firebase_message:
	  name: default_name
	  ...

	code.go

	firebase_message.InstallFountainInstance()

 firebase_message.WithConfigKey("firebase_message").InstallFountainInstance()
go
var InstallFountainInstance = Lib.InstallFountainInstance

Sử dụng khi config instance ở dạng key:array<value>; Sẽ luôn cố gắng khởi tạo kể cả khi config ở dạng key:value

Install with config format <key>:array<value>; eg: firebase_message:array<value>

Usage:

config.yaml:

firebase_message:
  - name: default_name
    ...

code.go

firebase_message.InstallFountainInstances()

firebase_message.WithConfigKey("firebase_message").InstallFountainInstances()
go
var InstallFountainInstances = Lib.InstallFountainInstances

Truy cập thẳng tới bộ quản lý thư viện

go
var Lib = lib_3rd.NewLib(newClient, lib_3rd.WithDefaultConfigFunc[config, Client](DefaultConfig))

go
var WithConfigKey = Lib.WithConfigKey

type Client

go
type Client struct {
    *firebase.App
    // contains filtered or unexported fields
}

func (*Client) SendMessage

go
func (c *Client) SendMessage(msg *messaging.MulticastMessage) error

Generated by gomarkdoc