util

package
v0.0.0-...-8bc4581 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext string) ([]byte, error)

func Encrypt

func Encrypt(data []byte) (string, error)

Types

type Authenticator

type Authenticator struct {
	*oidc.Provider
	oauth2.Config
}

func New

func New() (*Authenticator, error)

func (*Authenticator) VerifyIDToken

func (a *Authenticator) VerifyIDToken(ctx context.Context, token *oauth2.Token) (*oidc.IDToken, error)

type Snippet

type Snippet struct {
	Id       int    `yaml:"id"`
	Language string `yaml:"language"`
	Code     string `yaml:"code"`
}

func ParseYaml

func ParseYaml() []Snippet

Jump to

Keyboard shortcuts

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