util

package
v0.0.0-...-44e322f Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResult

type AuthResult struct {
	Name         string
	IconURL      string
	AuthProvider string
	AuthUID      string
}

AuthResult represents result of authentication.

type Date

type Date struct {
	Year  int
	Month int
	Day   int
}

func CurrentDate

func CurrentDate() (*Date, error)

type FirebaseVerifier

type FirebaseVerifier struct{}

func (*FirebaseVerifier) VerifyIDToken

func (v *FirebaseVerifier) VerifyIDToken(idToken string) (*AuthResult, error)

type SiteMeta

type SiteMeta struct {
	Title    string
	ImageURL string
}

SiteMeta represents site meta infomation.

type SiteMetaFetcher

type SiteMetaFetcher struct{}

func (*SiteMetaFetcher) Fetch

func (smf *SiteMetaFetcher) Fetch(url string) (*SiteMeta, error)

TODO: Support charset other than utf8

Jump to

Keyboard shortcuts

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