api

package
v0.0.0-...-2f4e506 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFiberApp

func NewFiberApp(
	ctx context.Context,
	db *mongo.Database,
	dbw db.Database,
	g gh.GitHub,
	key []byte,
	adminUsernames []string,
	adminPasswords []string,
	oktaOpts *flag.OktaOpts,
) *fiber.App

Types

type Exchange

type Exchange struct {
	Error            string `json:"error,omitempty"`
	ErrorDescription string `json:"error_description,omitempty"`
	AccessToken      string `json:"access_token,omitempty"`
	TokenType        string `json:"token_type,omitempty"`
	ExpiresIn        int    `json:"expires_in,omitempty"`
	Scope            string `json:"scope,omitempty"`
	IdToken          string `json:"id_token,omitempty"`
}

type Filter

type Filter struct {
	Type            string        `json:"type"`
	Field           string        `json:"field"`
	Values          []interface{} `json:"values"`
	Negate          bool          `json:"negate"`
	IncludeZeroTime bool          `json:"include_zero_time"`
}

type NameCount

type NameCount struct {
	Name  interface{} `bson:"_id" json:"name"`
	Count int         `bson:"count" json:"count"`
}

type UsernameDuration

type UsernameDuration struct {
	Username interface{} `bson:"_id" json:"username"`
	Duration int         `bson:"duration" json:"duration"`
}

Jump to

Keyboard shortcuts

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