emails

package
v0.0.0-...-476b611 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitServer

func InitServer()

InitServer initializes the mediaprocessing server

Types

type Chain

type Chain string
const (
	ChainEthereum Chain = "Ethereum"
	ChainArbitrum Chain = "Arbitrum"
	ChainPolygon  Chain = "Polygon"
	ChainOptimism Chain = "Optimism"
	ChainTezos    Chain = "Tezos"
	ChainPoap     Chain = "POAP"
	ChainZora     Chain = "Zora"
	ChainBase     Chain = "Base"
)

type CommunityDigestEntity

type CommunityDigestEntity struct {
	CommunityID            persist.DBID        `json:"community_id"`
	ContractAddress        persist.Address     `json:"contract_address"`
	ChainName              string              `json:"chain_name"`
	Name                   string              `json:"name"`
	Description            string              `json:"description"`
	PreviewImageURL        string              `json:"preview_image_url"`
	CreatorName            string              `json:"creator_name"`
	CreatorPreviewImageURL string              `json:"creator_preview_image_url"`
	Tokens                 []TokenDigestEntity `json:"tokens"`
	Editorialized          bool                `json:"editorialized"`
}

type DigestValueOverrides

type DigestValueOverrides struct {
	Posts                 []persist.DBID `json:"posts"`
	Communities           []persist.DBID `json:"communities"`
	Galleries             []persist.DBID `json:"galleries"`
	PostCount             int            `json:"post_count"`
	CommunityCount        int            `json:"community_count"`
	GalleryCount          int            `json:"gallery_count"`
	IncludeTopPosts       *bool          `json:"include_top_posts,omitempty"`
	IncludeTopCommunities *bool          `json:"include_top_communities,omitempty"`
	IncludeTopGalleries   *bool          `json:"include_top_galleries,omitempty"`
	IntroText             *string        `json:"intro_text,omitempty"`
	Subject               *string        `json:"subject,omitempty"`
}

type DigestValues

type DigestValues struct {
	Date           string           `json:"date"`
	IntroText      *string          `json:"intro_text"`
	Subject        *string          `json:"subject"`
	Posts          IncludedSelected `json:"posts"`
	Communities    IncludedSelected `json:"communities"`
	Galleries      IncludedSelected `json:"galleries"`
	PostCount      int              `json:"post_count"`
	CommunityCount int              `json:"community_count"`
	GalleryCount   int              `json:"gallery_count"`
}

type GalleryDigestEntity

type GalleryDigestEntity struct {
	GalleryID              persist.DBID        `json:"gallery_id"`
	CreatorUsername        string              `json:"creator_username"`
	CreatorPreviewImageURL string              `json:"creator_preview_image_url"`
	Name                   string              `json:"name"`
	Description            string              `json:"description"`
	Tokens                 []TokenDigestEntity `json:"tokens"`
	Editorialized          bool                `json:"editorialized"`
}

type IncludedSelected

type IncludedSelected struct {
	Selected []any `json:"selected"`
	Include  bool  `json:"include"`
}

type PostDigestEntity

type PostDigestEntity struct {
	PostID         persist.DBID        `json:"post_id"`
	Caption        string              `json:"caption"`
	AuthorUsername string              `json:"author_username"`
	AuthorPFPURL   string              `json:"author_pfp_url"`
	Tokens         []TokenDigestEntity `json:"tokens"`
	Editorialized  bool                `json:"editorialized"`
}

type TokenDigestEntity

type TokenDigestEntity struct {
	TokenID         persist.DBID `json:"token_id"`
	Name            string       `json:"name"`
	Description     string       `json:"description"`
	PreviewImageURL string       `json:"preview_image_url"`
	Editorialized   bool         `json:"editorialized"`
}

Jump to

Keyboard shortcuts

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