notice_latest_program_version

package module
v0.0.0-...-13ade29 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 7 Imported by: 0

README

notice-latest-program-version

Overview

This application sends notifications when programming language versions are updated. It uses Google Cloud Functions to automatically detect new releases and send notifications to the targeted users.

Used Stack

Detail
Language Go v1.20.0
Framework Functions Framework for Go v1.6.1
Infrastructure Google Cloud Functions, Google Cloud Scheduler, Google Pub/Sub, Google Memory Store for Redis

Setup

Clone the repository
$ git clone https://github.com/your-repo/notice-latest-program-version.git
$ cd notice-latest-program-version
Use Docker to launch the application in your local environment.
$ docker compose up -d --build

Usage

$ curl --location --request POST 'http://localhost:8080' \
--header 'Content-Type: application/json' \
--data-raw '{
    "message": {
        "data": "eyJmb28iOiAiYmFyIn0="
    }
}'

Infra

https://github.com/S-Ryouta/notice-latest-program-version-tf

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndUpdateVersionHandler

func CheckAndUpdateVersionHandler(ctx context.Context, m PubSubMessage) error

Types

type PubSubMessage

type PubSubMessage struct {
	Data []byte `json:"data"`
}

PubSubMessage is the payload of a Pub/Sub event. Please refer to the docs for additional information regarding Pub/Sub events.

Directories

Path Synopsis
domain
gcf module
infrastructure
db
usecase

Jump to

Keyboard shortcuts

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