repository

package
v0.0.0-...-a6f7148 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsRepository

type AnalyticsRepository interface {
	GetSessions(start string, end string) ([]*Page, error)
}

func NewAnalyticsRepository

func NewAnalyticsRepository() AnalyticsRepository

NewAnalyticsRepository access to analytics

type Page

type Page struct {
	Title string
	Path  string
	PV    int
}

type Post

type Post struct {
	Fallback string `json:"fallback"`
	Pretext  string `json:"pretext"`
	Title    string `json:"title"`
	Text     string `json:"text"`
	Color    string `json:"color"`
	Footer   string `json:"footer"`
}

type SlackRepository

type SlackRepository interface {
	Post(path string, msg []*Post) error
}

func NewSlackRepository

func NewSlackRepository() SlackRepository

NewSlackRepository access to slack

Jump to

Keyboard shortcuts

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