activity

package
v0.0.0-...-f77d796 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeTitle

func EscapeTitle(str string) string

EscapeTitle escapes a title that will be used in a markdown reference.

func EscapeURL

func EscapeURL(str string) string

EscapeURL escapes a URL that will be used in a markdown reference.

func MakeEdges

func MakeEdges(lineItems []UpsertLink) ([]*models.ActivityLineItemEdge, error)

MakeEdges takes a slice of UpsertLink structs and returns a []*models.ActivityLineItemEdge.

Types

type Link struct {
	Title string
	URL   string
}

Link holds essential information about a link.

type Topic

type Topic struct {
	Name string
	ID   string
}

Topic holds essential information about a topic.

type UpsertLink struct {
	CreatedAt time.Time
	User      User
	Link      Link
	Topics    []Topic
}

UpsertLink holds essential information about a log entry in which a link was upserted.

type User

type User struct {
	Name string
}

User holds essential information about a user.

Jump to

Keyboard shortcuts

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