framework

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

README

INFINI Framework

Requirements

  • Golang v1.11+

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(name, desc, ver, buildNumber, commit, buildDate, eolDate, terminalHeader, terminalFooter string) *App

func (*App) IgnoreMainConfigMissing

func (app *App) IgnoreMainConfigMissing()

func (*App) Init

func (app *App) Init(customFunc func())

func (*App) Run

func (app *App) Run()

func (*App) Setup

func (app *App) Setup(setup func(), start func(), stop func()) (allowContinue bool)

func (*App) Shutdown

func (app *App) Shutdown()

func (*App) Start

func (p *App) Start(s service.Service) error

for service

func (*App) Stop

func (p *App) Stop(s service.Service) error

Directories

Path Synopsis
cmd
vfs
core
api
api/router
Package httprouter is a trie based high performance HTTP request router.
Package httprouter is a trie based high performance HTTP request router.
config
Package config , actually copied from github.com/elastic/beats
Package config , actually copied from github.com/elastic/beats
env
errors
multierror is a simple Go package for combining multiple errors together.
multierror is a simple Go package for combining multiple errors together.
kv
orm
radix
Package glob provides a trie(also known as prefix-tree) that supports wildcard *.
Package glob provides a trie(also known as prefix-tree) that supports wildcard *.
rotate
Package lumberjack provides a rolling logger.
Package lumberjack provides a rolling logger.
rpc
Package grpcpool provides a pool of grpc clients https://github.com/processout/grpc-go-pool/blob/master/LICENSE
Package grpcpool provides a pool of grpc clients https://github.com/processout/grpc-go-pool/blob/master/LICENSE
s3
trie
Package trie implements several types of performant Tries (e.g.
Package trie implements several types of performant Tries (e.g.
util
https://ericchiang.github.io/post/go-tls/
https://ericchiang.github.io/post/go-tls/
util/file
Package file copied from github.com/elastic/beats https://github.com/elastic/beats/blob/master/LICENSE Licensed under the Apache License, Version 2.0 (the "License");
Package file copied from github.com/elastic/beats https://github.com/elastic/beats/blob/master/LICENSE Licensed under the Apache License, Version 2.0 (the "License");
vfs
lib
bytebufferpool
Package bytebufferpool implements a pool of byte buffers with anti-fragmentation protection.
Package bytebufferpool implements a pool of byte buffers with anti-fragmentation protection.
cache
An LRU cached aimed at high concurrency
An LRU cached aimed at high concurrency
fasthttp
Package fasthttp provides fast HTTP server and client API.
Package fasthttp provides fast HTTP server and client API.
fasthttp/expvarhandler
Package expvarhandler provides fasthttp-compatible request handler serving expvars.
Package expvarhandler provides fasthttp-compatible request handler serving expvars.
fasthttp/fasthttpadaptor
Package fasthttpadaptor provides helper functions for converting net/http request handlers to fasthttp request handlers.
Package fasthttpadaptor provides helper functions for converting net/http request handlers to fasthttp request handlers.
fasthttp/fasthttputil
Package fasthttputil provides utility functions for fasthttp.
Package fasthttputil provides utility functions for fasthttp.
fasthttp/reuseport
Package reuseport provides TCP net.Listener with SO_REUSEPORT support.
Package reuseport provides TCP net.Listener with SO_REUSEPORT support.
fasthttp/stackless
Package stackless provides functionality that may save stack space for high number of concurrently running goroutines.
Package stackless provides functionality that may save stack space for high number of concurrently running goroutines.
fastjson_marshal
Package fastjson provides a library for fast JSON encoding, optimised for static code generation.
Package fastjson provides a library for fast JSON encoding, optimised for static code generation.
fasttemplate
Package fasttemplate implements simple and fast template library.
Package fasttemplate implements simple and fast template library.
go-ucfg
Package ucfg provides a common representation for hierarchical configurations.
Package ucfg provides a common representation for hierarchical configurations.
guardian
Package guardian .
Package guardian .
guardian/auth/claims
Package claims collects common jwt types.
Package claims collects common jwt types.
guardian/auth/internal
Package internal contains support & helpers for go-guardian packages.
Package internal contains support & helpers for go-guardian packages.
guardian/auth/strategies/basic
Package basic provides authentication strategy, to authenticate HTTP requests using the standard basic scheme.
Package basic provides authentication strategy, to authenticate HTTP requests using the standard basic scheme.
guardian/auth/strategies/digest
Package digest provides authentication strategy, to authenticate HTTP requests using the standard digest scheme as described in RFC 7616.
Package digest provides authentication strategy, to authenticate HTTP requests using the standard digest scheme as described in RFC 7616.
guardian/auth/strategies/jwt
Package jwt provides authentication strategy, to authenticate HTTP requests based on jwt token.
Package jwt provides authentication strategy, to authenticate HTTP requests based on jwt token.
guardian/auth/strategies/kubernetes
Package kubernetes provide auth strategy to authenticate, incoming HTTP requests using a Kubernetes Service Account Token.
Package kubernetes provide auth strategy to authenticate, incoming HTTP requests using a Kubernetes Service Account Token.
guardian/auth/strategies/ldap
Package ldap provides authentication strategy, to authenticate HTTP requests and builds, extracts user informations from LDAP Server.
Package ldap provides authentication strategy, to authenticate HTTP requests and builds, extracts user informations from LDAP Server.
guardian/auth/strategies/oauth2/introspection
Package introspection provide auth strategy to authenticate, incoming HTTP requests using the oauth2 token introspection endpoint, as defined in RFC 7662.
Package introspection provide auth strategy to authenticate, incoming HTTP requests using the oauth2 token introspection endpoint, as defined in RFC 7662.
guardian/auth/strategies/oauth2/jwt
Package jwt provides authentication strategy, incoming HTTP requests using the oauth2 jwt access token or openid IDToken.
Package jwt provides authentication strategy, incoming HTTP requests using the oauth2 jwt access token or openid IDToken.
guardian/auth/strategies/oauth2/userinfo
Package userinfo provide auth strategy to authenticate, incoming HTTP requests using the oauth2/openid userinfo endpoint, as defined in OpenID Connect https://openid.net/specs/openid-connect-core-1_0.html#UserInfo.
Package userinfo provide auth strategy to authenticate, incoming HTTP requests using the oauth2/openid userinfo endpoint, as defined in OpenID Connect https://openid.net/specs/openid-connect-core-1_0.html#UserInfo.
guardian/auth/strategies/token
Package token provides authentication strategy, to authenticate HTTP requests based on token.
Package token provides authentication strategy, to authenticate HTTP requests based on token.
guardian/auth/strategies/twofactor
Package twofactor provides authentication strategy, to authenticate HTTP requests based on one time password(otp).
Package twofactor provides authentication strategy, to authenticate HTTP requests based on one time password(otp).
guardian/auth/strategies/x509
Package x509 provides authentication strategy, to authenticate HTTPS requests and builds, extracts user informations from client certificates.
Package x509 provides authentication strategy, to authenticate HTTPS requests and builds, extracts user informations from client certificates.
guardian/otp
Package otp (one-time passwords) provides a simple, clean, and idiomatic way for generating and verifying one-time passwords for both HOTP and TOTP defined in RFC 4226 and 6238.
Package otp (one-time passwords) provides a simple, clean, and idiomatic way for generating and verifying one-time passwords for both HOTP and TOTP defined in RFC 4226 and 6238.
lock_free/queue
esQueue
esQueue
router
Package router is a trie based high performance HTTP request router.
Package router is a trie based high performance HTTP request router.
status
©INFINI, All Rights Reserved.
©INFINI, All Rights Reserved.
modules
api
queue/mem_queue
Package queue implements a double-ended queue (aka "deque") data structure on top of a slice.
Package queue implements a double-ended queue (aka "deque") data structure on top of a slice.
s3
web
plugins

Jump to

Keyboard shortcuts

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