ports

package
v0.0.0-...-ec49581 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRepository

type CacheRepository interface {
	Set(key string, value interface{}, expiration time.Duration) error
	Get(key string, value interface{}) error
	Delete(key string) error
}

type MessengerRepository

type MessengerRepository interface {
	CreateMessage(userID string, message domain.Message) error
	ReadMessage(id string) (*domain.Message, error)
	ReadMessages() ([]*domain.Message, error)
	UpdateMessage(id string, message domain.Message) error
	DeleteMessage(id string) error
}

type MessengerService

type MessengerService interface {
	CreateMessage(userID string, message domain.Message) error
	ReadMessage(id string) (*domain.Message, error)
	ReadMessages() ([]*domain.Message, error)
	UpdateMessage(id string, message domain.Message) error
	DeleteMessage(id string) error
}

type PaymentRepository

type PaymentRepository interface {
	CreateCheckoutSession(userID string, payment domain.Payment) error
}

type PaymentService

type PaymentService interface {
	CreateCheckoutSession(userID string, payment domain.Payment) error
}

type UserRepository

type UserRepository interface {
	CreateUser(email, password string) (*domain.User, error)
	ReadUser(id string) (*domain.User, error)
	ReadUsers() ([]*domain.User, error)
	UpdateUser(id, email, password string) error
	DeleteUser(id string) error
	LoginUser(email, password string) (*repository.LoginResponse, error)
	UpdateMembershipStatus(id string, status bool) error
}

type UserService

type UserService interface {
	CreateUser(email, password string) (*domain.User, error)
	ReadUser(id string) (*domain.User, error)
	ReadUsers() ([]*domain.User, error)
	UpdateUser(id, email, password string) error
	DeleteUser(id string) error
	LoginUser(email, password string) (*repository.LoginResponse, error)
	UpdateMembershipStatus(id string, status bool) error
}

Jump to

Keyboard shortcuts

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