social

package module
v0.0.0-...-46ac55d Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Unlicense Imports: 8 Imported by: 0

README

GIT.FJALL.NET/WX/SOCIAL
=======================

These are tools built specifically for the NWS bots.
You can make some minor edits to apply them to your project though; they're
pretty general purpose files.


FUNCTIONS
---------

> social.PostToBluesky(identifier string, warning_text string)

> social.PostToFediverse(identifier string, warning_text string)

> social.PostToAll(identifier string, warning_text string)


VARIABLES
---------

> identifier string
{username}.fjall.net

> warning_text string
Text to include in the post

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostToAll

func PostToAll(identifier string, warning_text string)

func PostToBluesky

func PostToBluesky(identifier string, warning_text string)

func PostToFediverse

func PostToFediverse(identifier string, warning_text string)

Types

type BskyUser

type BskyUser struct {
	Identifier string `json:"identifier"`
	Password   string `json:"password"`
}

type PostRecord

type PostRecord struct {
	Repo       string `json:"repo"`
	Collection string `json:"collection"`
	Record     Record `json:"record"`
}

type Record

type Record struct {
	Text      string    `json:"text"`
	CreatedAt time.Time `json:"createdAt"`
	Langs     []string  `json:"langs"`
}

type SessionBody

type SessionBody struct {
	AccessJwt  string `json:"accessJwt"`
	RefreshJwt string `json:"refreshJwt"`
	Handle     string `json:"handle"`
	DID        string `json:"did"`
}

Jump to

Keyboard shortcuts

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