api

package
v0.0.0-...-96036c8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 42 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,
	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        `query:"type"`
	Field  string        `query:"field"`
	Values []interface{} `query:"values"`
	Negate bool          `query:"negate"`
}

type NameCount

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

Jump to

Keyboard shortcuts

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