repository

package
v0.0.0-...-163ce89 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 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