server

package
v0.0.0-...-1831a52 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Copyright © 2024 Kian Musser Freely available under the MIT license

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Title       string
	Description string
	Link        string
	Date        time.Time
}

A parsed job description from Upwork

type NtfySubmission

type NtfySubmission struct {
	Topic   string `json:"topic"`
	Message string `json:"message"`
	Title   string `json:"title"`
}

A JSON payload to send to ntfy.sh

type Server

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

func NewServer

func NewServer(ntfyTopic string, upworkRssUrls []string) *Server

func (*Server) Fetch

func (s *Server) Fetch()

func (*Server) Notify

func (s *Server) Notify(job Job)

func (*Server) ParseRssFeed

func (s *Server) ParseRssFeed(rssUrl string) []Job

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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