m20211202

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

m20211202 handles IdempotencyStoreGormItem migration NOTE: IdempotencyStoreGormItems are used to store idempotency keys when idempotency middleware is enabled & configured to use the shared sql database

Index

Constants

View Source
const ID = "20211202"

Variables

This section is empty.

Functions

func Migrate

func Migrate(tx *gorm.DB) error

func Rollback

func Rollback(tx *gorm.DB) error

Types

type IdempotencyStoreGormItem

type IdempotencyStoreGormItem struct {
	Key        string    `gorm:"column:key;primary_key"`
	ExpiryDate time.Time `gorm:"column:expiry_date"`
}

func (IdempotencyStoreGormItem) TableName

func (IdempotencyStoreGormItem) TableName() string

Jump to

Keyboard shortcuts

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