infrastructure

package
v0.0.0-...-346ca5a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Locale = "Asia/Tokyo"
)

Variables

This section is empty.

Functions

func NewArtistRepository

func NewArtistRepository(db *gorm.DB) repository.Artist

func NewGORMClient

func NewGORMClient(db *gorm.DB) repository.DB

func NewGoogleCalenderClient

func NewGoogleCalenderClient(client *http.Client) repository.ExternalCalendar

func NewHTTPClient

func NewHTTPClient() gateway.HTTP

func NewRedisManager

func NewRedisManager(c *redis.Client) repository.Cache

func NewUserRepository

func NewUserRepository(db *gorm.DB) repository.User

Types

type GinRouter

type GinRouter interface {
	Serve(addr string) error
	SetRoute() error
}

func NewGinRouter

func NewGinRouter(logger framework.Logger, db *gorm.DB, redis *redis.Client) (GinRouter, error)

type HttpClient

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

func (*HttpClient) Get

func (c *HttpClient) Get(url string, header map[string]string, param map[string]string) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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