Documentation ¶
Overview ¶
We need to think about this Helx-Apps really breaks an ideally managed rest-api. Instead of relying on database to persist list of applications which support crud functionality, here we would either embed or reach out to a github repository for the information. Benefits - Allows for dynamic loading into ptolemaios however the downside is
Index ¶
- Variables
- func CloneBranch(url, branchName string) error
- func Matches(value string, rx *regexp.Regexp) bool
- func NewLogger(out io.Writer) *slog.Logger
- func NewOauthConfig(p Provider) *oauth2.Config
- func NewSessionManager(db *pgxpool.Pool) *scs.SessionManager
- func OpenDB(dsn string) (*pgxpool.Pool, error)
- func PermittedValue[T comparable](value T, permittedValues ...T) bool
- func Unique[T comparable](values []T) bool
- type Config
- type Db
- type Provider
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmailRX = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
)
Functions ¶
func CloneBranch ¶
Clone the helx-apps branch from url and branchName provided. This will represent the applications available to the user in appstore.
func NewSessionManager ¶
Initialize a new session manager. Adjust the Lifetime here to create shorter or longer sessions as needed. Currently this is hardcoded to keep it simple.
func PermittedValue ¶
func PermittedValue[T comparable](value T, permittedValues ...T) bool
func Unique ¶
func Unique[T comparable](values []T) bool
Types ¶
type Validator ¶
func NewValidator ¶
func NewValidator() *Validator
Click to show internal directories.
Click to hide internal directories.