traffic

package
v0.0.0-...-9cd47dc Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// OK is when the status is all good
	OK = &Status{emoji.Sprint(":green_heart:")}
	// NOK when the traffic is not good
	NOK = &Status{emoji.Sprint(":anger:")}
	// Warning when the traffic is unknown
	Warning = &Status{emoji.Sprint(":question:")}
)

Functions

This section is empty.

Types

type Status

type Status struct {
	// contains filtered or unexported fields
}

Status of the traffic

func GetStatus

func GetStatus(tweets []twitter.Tweet) *Status

GetStatus from the latest tweets

func (*Status) String

func (s *Status) String() string

Jump to

Keyboard shortcuts

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