notification

package
v0.0.0-...-bb80d3f Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NotificationID = "notification"

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Update(c *gin.Context)
	Get(c *gin.Context)
}

func NewApi

func NewApi(
	store Store,
) API

type InstructionNotification

type InstructionNotification struct {
	Rate          *bool                     `json:"rate" bson:"rate" binding:"required"`
	RateFrequency datetime.DurationWithUnit `json:"rate_frequency" bson:"rate_frequency" binding:"required"`
}

type Notification

type Notification struct {
	Instruction InstructionNotification `json:"instruction" bson:"instruction"`
}

type Store

type Store interface {
	Get(ctx context.Context) (Notification, error)
	Update(ctx context.Context, request Notification) (Notification, error)
}

func NewStore

func NewStore(
	dbClient mongo.DbClient,
) Store

Jump to

Keyboard shortcuts

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