platform

package
v0.0.0-...-de647de Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeShopify     = "shopify"
	TypeWooCommerce = "woocommerce"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *gorm.DB) *Repository

func (*Repository) Create

func (r *Repository) Create(o *model.Platform) (*model.Platform, error)

func (*Repository) FindOne

func (r *Repository) FindOne(id int) (*model.Platform, error)

type Service

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

func NewService

func NewService(db *gorm.DB) *Service

func (Service) Create

func (s Service) Create(ctx context.Context, r *pb.Platform) (*pb.Platform, error)

func (Service) Delete

func (s Service) Delete(ctx context.Context, r *pb.OnePlatformRequest) (*types.Empty, error)

func (Service) Get

func (Service) List

func (Service) Update

func (s Service) Update(ctx context.Context, r *pb.Platform) (*pb.Platform, error)

Jump to

Keyboard shortcuts

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