mysql

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

README

MySQL

MySQL provider implementation.

Better encoder:

  • Encode: session.Base64Encode
  • Decode: session.Base64Decode

Based on: fasthttp/session/providers/mysql

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (*mysql.Provider, error)

New returns a new configured mysql provider.

Types

type Config

type Config mysql.Config

Config provider settings.

func NewConfigWith

func NewConfigWith(host string, port int, user, pass, dbName, tableName string) Config

NewConfigWith returns a new configuration with especific paremters.

func NewDefaultConfig

func NewDefaultConfig() Config

NewDefaultConfig returns a default configuration.

Jump to

Keyboard shortcuts

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