dynamo

package
v0.0.0-...-3f31b7a Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IShortURLRepository

type IShortURLRepository interface {
	Get(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)
	Put(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)
}

type ItemKey

type ItemKey struct {
	ID string `dynamodbav:"id"`
}

type ShortURLRepository

type ShortURLRepository struct {
	*infrastructure.Connection
	// インターフェースは既に参照型です。これは、インターフェースが背後でポインタとして機能することを意味し、明示的にポインタとして渡す必要はありません。
	infrastructure.ILabelLogger
}

func (*ShortURLRepository) Get

func (r *ShortURLRepository) Get(ctx context.Context, hashURL string) (domain.ShortURL, error)

構造体に属することで、構造体が初期されていないと呼び出すことはできないことになる。

func (*ShortURLRepository) Put

type TableItem

type TableItem struct {
	ID          string `dynamodbav:"id"`
	OriginalURL string `dynamodbav:"originalURL"`
	CreatedAt   string `dynamodbav:"createdAt"`
}

Jump to

Keyboard shortcuts

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