Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetAddress() string
func GetDatabaseFile ¶
func GetDatabaseFile() string
func GetSessionKey ¶
func GetSessionKey() []byte
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Start ¶
Start the server and should be called in with go routine
go s.Start("127.0.0.1:8080")
func (*Server) WaitAndTerminate ¶
WaitAndTerminate will wait until a termination signal is received and then shutdown the server.
type ServerOption ¶
type ServerOption func(*Server)
func WithLogger ¶
func WithLogger() ServerOption
func WithRecover ¶
func WithRecover() ServerOption
func WithRemoveTrailingSlash ¶
func WithRemoveTrailingSlash() ServerOption
func WithSecure ¶
func WithSecure() ServerOption
func WithSession ¶
func WithSession() ServerOption
Click to show internal directories.
Click to hide internal directories.