common

package module
v0.0.0-...-fe336e1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorLogger = log.New(os.Stderr, "", log.Lshortfile)

Functions

func GetServiceLocationAndName

func GetServiceLocationAndName() (serviceLocation string, serviceName string)

func GetServiceUrl

func GetServiceUrl(serviceLocation string, serviceName string) (string, error)

Types

type BirthdayJson

type BirthdayJson struct {
	ChatId int64  `json:"chatId"`
	UserId int64  `json:"userId"`
	Name   string `json:"name"`
}

type BirthdaysJson

type BirthdaysJson struct {
	Birthdays []BirthdayJson `json:"birthdays"`
}

type Service

type Service struct {
	Status ServiceStatus `json:"status"`
}

type ServiceCondition

type ServiceCondition struct {
	Type   string `json:"type"`
	Status string `json:"status"`
}

type ServiceStatus

type ServiceStatus struct {
	Conditions []ServiceCondition `json:"conditions"`
	Url        string             `json:"url"`
}

type SystemClock

type SystemClock struct{}

func (SystemClock) Now

func (clock SystemClock) Now() time.Time

type Token

type Token struct {
	Value string `json:"access_token"`
}

Jump to

Keyboard shortcuts

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