Documentation
¶
Index ¶
- type Flows
- type Fx
- func (f *Fx) AddPath(dir string, prefix string)
- func (f *Fx) ConnectPostgres(dbName string) (*sql.DB, error)
- func (f *Fx) ConnectRedis(dbNumber int, password string) (*redis.Client, error)
- func (f *Fx) GethHandler(w http.ResponseWriter, r *http.Request)
- func (f *Fx) In(endpoint string, options ...GetOption) ([]byte, error)
- func (f *Fx) NewOAuthClient(clientID, clientSecret, tokenURL string, scopes []string) (*http.Client, error)
- func (f *Fx) Node() error
- func (f *Fx) Out(w http.ResponseWriter, input func() (any, error), locker sync.Locker)
- func (f *Fx) Print(value any)
- func (f *Fx) Simplify(input any) any
- type GetOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flows ¶ added in v1.2.140
type Flows interface {
AuthHeader(token string) map[string]string
Authorization() string
Authentication() string
Enrollment() string
Recovery() string
Settings() string
Sessions() string
Logout() string
}
func NewAuthentikFlows ¶ added in v1.2.140
type Fx ¶ added in v1.1.52
type Fx struct {
Rpc *rpc.Client
Eth *ethclient.Client
Http *http.Client
*zero.Zero
// contains filtered or unexported fields
}
func (*Fx) AddPath ¶ added in v1.2.139
Walk directory and load files into memory, determine Content-Type based on file extension. Register route/<prefix/<file without extension>.
func (*Fx) ConnectPostgres ¶ added in v1.1.52
func (*Fx) ConnectRedis ¶ added in v1.1.52
func (*Fx) GethHandler ¶ added in v1.2.135
func (f *Fx) GethHandler(w http.ResponseWriter, r *http.Request)
GethHandler handles JSON-RPC requests via IPC
func (*Fx) NewOAuthClient ¶ added in v1.1.52
func (f *Fx) NewOAuthClient(clientID, clientSecret, tokenURL string, scopes []string) (*http.Client, error)
NewOAuthClient returns an authenticated HTTP client using OAuth2 client credentials flow with automatic token refreshing and all requested scopes.
func (*Fx) Out ¶ added in v1.2.139
Out writes single response for http requests, using a function to source data and a locker to synchronize access or an HTTP 500 error when the input function fails or JSON encoding fails.
type GetOption ¶ added in v1.2.139
GetOption represents a function that modifies a GET request
func WithAPIKey ¶ added in v1.2.139
func WithBasicAuth ¶ added in v1.2.139
func WithBearerToken ¶ added in v1.2.139
func WithHeader ¶ added in v1.2.139
Header option builders
func WithQueryMap ¶ added in v1.2.139
Click to show internal directories.
Click to hide internal directories.