domain

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTagDuplicated    = errors.New("push: tag is duplicated")
	ErrTagAlreadyExists = errors.New("push: tag already exists")
	ErrTagNotFound      = errors.New("push: tag not found")
)

Functions

This section is empty.

Types

type Push

type Push struct {
	*proto.Push
}

func NewPush

func NewPush(name, fcmAPIKey string, tags []string) (*Push, error)

func (*Push) AddTags

func (p *Push) AddTags(newTags []string) error

func (*Push) DeleteTags

func (p *Push) DeleteTags(tags []string) error

func (*Push) ExistTag

func (p *Push) ExistTag(findTag string) bool

func (*Push) Rename

func (p *Push) Rename(name string) error

func (*Push) SetDeleted

func (p *Push) SetDeleted()

Jump to

Keyboard shortcuts

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