server

package
v0.0.0-...-f01c647 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzuriteOptions

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

type Options

type Options struct {
	Address                      string
	DatabaseDriver               string
	DatabaseDSN                  string
	LoginURL                     string
	JwtGroups                    utils.JwtGroupOptions
	IdTokenAuthHeaderName        string
	IdTokenAuthHeaderFormat      string
	AccessTokenHeaderName        string
	AccessTokenHeaderFormat      string
	OIDCIssuerURL                string
	OAuthClientID                string
	TokenRefreshURL              string
	TokenRefreshInterval         time.Duration
	HashKey1                     string
	BlockKey1                    string
	HashKey2                     string
	BlockKey2                    string
	EnableBetaFeatures           bool
	AzureBlobStorageURL          string
	DownloadsContainerName       string
	UserAssignedIdentityClientId string
	AzuriteAccountName           string
	AzuriteAccountKey            string
}

func (Options) New

func (o Options) New(ctx context.Context) (*Server, error)

type Server

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

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

type TimeFunctions

type TimeFunctions struct{}

func (TimeFunctions) ANSIC

func (f TimeFunctions) ANSIC() string

func (TimeFunctions) Add

func (TimeFunctions) Format

func (f TimeFunctions) Format(t time.Time, layout string) string

func (TimeFunctions) Hour

func (f TimeFunctions) Hour(i int) time.Duration

func (TimeFunctions) Kitchen

func (f TimeFunctions) Kitchen() string

func (TimeFunctions) Layout

func (f TimeFunctions) Layout() string

func (TimeFunctions) Microsecond

func (f TimeFunctions) Microsecond(i int) time.Duration

func (TimeFunctions) Millisecond

func (f TimeFunctions) Millisecond(i int) time.Duration

func (TimeFunctions) Minute

func (f TimeFunctions) Minute(i int) time.Duration

func (TimeFunctions) Nanosecond

func (f TimeFunctions) Nanosecond(i int) time.Duration

func (TimeFunctions) Now

func (f TimeFunctions) Now() time.Time

func (TimeFunctions) Parse

func (f TimeFunctions) Parse(layout, value string) (time.Time, error)

func (TimeFunctions) ParseDuration

func (f TimeFunctions) ParseDuration(s string) (time.Duration, error)

func (TimeFunctions) ParseInLocation

func (f TimeFunctions) ParseInLocation(layout, value string, location string) (time.Time, error)

func (TimeFunctions) RFC1123

func (f TimeFunctions) RFC1123() string

func (TimeFunctions) RFC1123Z

func (f TimeFunctions) RFC1123Z() string

func (TimeFunctions) RFC3339

func (f TimeFunctions) RFC3339() string

func (TimeFunctions) RFC3339Nano

func (f TimeFunctions) RFC3339Nano() string

func (TimeFunctions) RFC822

func (f TimeFunctions) RFC822() string

func (TimeFunctions) RFC822Z

func (f TimeFunctions) RFC822Z() string

func (TimeFunctions) RFC850

func (f TimeFunctions) RFC850() string

func (TimeFunctions) RubyDate

func (f TimeFunctions) RubyDate() string

func (TimeFunctions) Second

func (f TimeFunctions) Second(i int) time.Duration

func (TimeFunctions) Since

func (f TimeFunctions) Since(t time.Time) time.Duration

func (TimeFunctions) Stamp

func (f TimeFunctions) Stamp() string

func (TimeFunctions) StampMicro

func (f TimeFunctions) StampMicro() string

func (TimeFunctions) StampMilli

func (f TimeFunctions) StampMilli() string

func (TimeFunctions) StampNano

func (f TimeFunctions) StampNano() string

func (TimeFunctions) Sub

func (TimeFunctions) Unix

func (f TimeFunctions) Unix(sec int64, nsec int64) time.Time

func (TimeFunctions) UnixDate

func (f TimeFunctions) UnixDate() string

func (TimeFunctions) UnixMicro

func (f TimeFunctions) UnixMicro(usec int64) time.Time

func (TimeFunctions) UnixMilli

func (f TimeFunctions) UnixMilli(msec int64) time.Time

func (TimeFunctions) UnixSeconds

func (f TimeFunctions) UnixSeconds(sec int64) time.Time

func (TimeFunctions) Until

func (f TimeFunctions) Until(t time.Time) time.Duration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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