fcm

package
v2.48.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2026 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FCMAttachment

type FCMAttachment struct {
	Data map[string]string
}

type FCMConfig

type FCMConfig struct {
	IsActive           bool   `yaml:"is_active"`
	ServiceAccountPath string `yaml:"service_account_path"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *FCMConfig) (*Service, error)

func (*Service) IsActive

func (s *Service) IsActive() bool

func (*Service) Send

func (s *Service) Send(ctx context.Context, text string, attachment interface{}) error

func (*Service) SetDestination

func (s *Service) SetDestination(destination interface{})

func (*Service) SetTraceId

func (s *Service) SetTraceId(traceID string)

func (*Service) Type

func (s *Service) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL