service

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: AGPL-3.0 Imports: 26 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CinemaService

type CinemaService interface {
	Create(m *pb_catalog_cinema.CinemaCombine) error
	Update(m *pb_catalog_cinema.CinemaCombine) error
	Delete(u uuid.UUID) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_cinema.CinemaCombine, int64, error)
	Get(u uuid.UUID) (*pb_catalog_cinema.CinemaCombine, error)
	GetCity(u uuid.UUID, filter interface{}) (*pb_catalog_city.CityCombine, error)
	GetHalls(u uuid.UUID, page, per_page int64, filter, sort interface{}) ([]*pb_catalog_hall.HallCombine, int64, error)
	GetSeances(u uuid.UUID, page, per_page int64, filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error)
	IsExist(u uuid.UUID) error
}

CinemaService interface

func NewCinemaMongoService

func NewCinemaMongoService(plugin_mongodb *plugin_database_mongodb.Plugin) CinemaService

NewCinemaMongoService init

type CityService

type CityService interface {
	Create(m *pb_catalog_city.CityCombine) error
	Update(m *pb_catalog_city.CityCombine) error
	Delete(u uuid.UUID) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_city.CityCombine, int64, error)
	Get(u uuid.UUID) (*pb_catalog_city.CityCombine, error)
	GetCinemas(u uuid.UUID, page, per_page int64, filter, sort interface{}) ([]*pb_catalog_cinema.CinemaCombine, int64, error)
	GetSeances(u uuid.UUID, page, per_page int64, filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error)
	GetTimezone(u uuid.UUID) (string, error)
	IsExist(u uuid.UUID) error
}

CityService interface

func NewCityMongoService

func NewCityMongoService(plugin_mongodb *plugin_database_mongodb.Plugin) CityService

NewCityMongoService init

type HallService

type HallService interface {
	Create(m *pb_catalog_hall.HallCombine) error
	Update(m *pb_catalog_hall.HallCombine) error
	Delete(u uuid.UUID) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_hall.HallCombine, int64, error)
	Get(u uuid.UUID) (*pb_catalog_hall.HallCombine, error)
	IsExist(u uuid.UUID) error
}

HallService interface

func NewHallMongoService

func NewHallMongoService(plugin_mongodb *plugin_database_mongodb.Plugin) HallService

NewHallMongoService init

type MovieService

type MovieService interface {
	Create(m *pb_catalog_movie.MovieCombine) error
	Update(m *pb_catalog_movie.MovieCombine) error
	Delete(u uuid.UUID) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_movie.MovieCombine, int64, error)
	Get(u uuid.UUID) (*pb_catalog_movie.MovieCombine, error)
	IsExist(u uuid.UUID) error
	GetSeances(u uuid.UUID, page, per_page int64, filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error)
	GetToday(filter, sort interface{}) ([]*pb_catalog_movie.MovieCombine, int64, error)
	GetSoon(filter, sort interface{}) ([]*pb_catalog_movie.MovieCombine, int64, error)
	FindByName(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_movie.MovieCombine, int64, error)
	UpdateMoviesParent(filter interface{}, update interface{}) (int64, int64, error)
}

MovieService interface

func NewMovieMongoService

func NewMovieMongoService(plugin_mongodb *plugin_database_mongodb.Plugin) MovieService

NewMovieMongoService init

type ScheduleService

type ScheduleService interface {
	Paginate(filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error)
	UpdateMoviesParent(filter interface{}, update interface{}) (int64, int64, error)
}

ScheduleService interface

func NewScheduleMongoService

func NewScheduleMongoService(plugin_mongodb *plugin_database_mongodb.Plugin) ScheduleService

NewScheduleMongoService init

type SeanceService

type SeanceService interface {
	Create(m *pb_catalog_seance.SeanceCombine) error
	Update(m *pb_catalog_seance.SeanceCombine) error
	Delete(u uuid.UUID) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error)
	Get(u uuid.UUID) (*pb_catalog_seance.SeanceCombine, error)
	IsExist(u uuid.UUID) error
	GetCity(u uuid.UUID, filter interface{}) (*pb_catalog_city.CityCombine, error)
	GetCinema(u uuid.UUID, filter interface{}) (*pb_catalog_cinema.CinemaCombine, error)
	GetHall(u uuid.UUID, filter interface{}) (*pb_catalog_hall.HallCombine, error)
	GetMovie(u uuid.UUID, filter interface{}) (*pb_catalog_movie.MovieCombine, error)
	GetLocal(u uuid.UUID, filter interface{}) (*rpc_catalog_seance.GetSeanceLocalResponse_Data, error)
}

SeanceService interface

func NewSeanceMongoService

func NewSeanceMongoService(plugin_mongodb *plugin_database_mongodb.Plugin) SeanceService

NewSeanceMongoService init

type Service

type Service struct {
	ServiceName string `mapstructure:"service_name"`
	City        struct {
		RPC rpc_city.CityService

		Create      opts `mapstructure:"create"`
		Update      opts `mapstructure:"update"`
		Delete      opts `mapstructure:"delete"`
		Paginate    opts `mapstructure:"paginate"`
		Get         opts `mapstructure:"get"`
		IsExist     opts `mapstructure:"is_exist"`
		GetCinemas  opts `mapstructure:"get_cinemas"`
		GetSeances  opts `mapstructure:"get_seances"`
		GetTimezone opts `mapstructure:"get_timezone"`
	} `mapstructure:"city"`
	Cinema struct {
		RPC rpc_cinema.CinemaService

		Create     opts `mapstructure:"create"`
		Update     opts `mapstructure:"update"`
		Delete     opts `mapstructure:"delete"`
		Paginate   opts `mapstructure:"paginate"`
		Get        opts `mapstructure:"get"`
		IsExist    opts `mapstructure:"is_exist"`
		GetCity    opts `mapstructure:"get_city"`
		GetHalls   opts `mapstructure:"get_halls"`
		GetSeances opts `mapstructure:"get_seances"`
	} `mapstructure:"cinema"`
	Hall struct {
		RPC rpc_hall.HallService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
		IsExist  opts `mapstructure:"is_exist"`
	} `mapstructure:"hall"`
	Movie struct {
		RPC rpc_movie.MovieService

		Create             opts `mapstructure:"create"`
		Update             opts `mapstructure:"update"`
		Delete             opts `mapstructure:"delete"`
		Paginate           opts `mapstructure:"paginate"`
		Get                opts `mapstructure:"get"`
		IsExist            opts `mapstructure:"is_exist"`
		GetSeances         opts `mapstructure:"get_seances"`
		GetToday           opts `mapstructure:"get_today"`
		GetSoon            opts `mapstructure:"get_soon"`
		FindByName         opts `mapstructure:"find_by_name"`
		UpdateMoviesParent opts `mapstructure:"update_movies_parent"`
	} `mapstructure:"movie"`
	Seance struct {
		RPC rpc_seance.SeanceService

		Create    opts `mapstructure:"create"`
		Update    opts `mapstructure:"update"`
		Delete    opts `mapstructure:"delete"`
		Paginate  opts `mapstructure:"paginate"`
		Get       opts `mapstructure:"get"`
		IsExist   opts `mapstructure:"is_exist"`
		GetCity   opts `mapstructure:"get_city"`
		GetCinema opts `mapstructure:"get_cinema"`
		GetHall   opts `mapstructure:"get_hall"`
		GetMovie  opts `mapstructure:"get_movie"`
		GetLocal  opts `mapstructure:"get_local"`
	} `mapstructure:"seance"`
	Schedule struct {
		RPC rpc_schedule.ScheduleService

		Paginate           opts `mapstructure:"paginate"`
		UpdateMoviesParent opts `mapstructure:"update_movies_parent"`
	} `mapstructure:"schedule"`
}

Jump to

Keyboard shortcuts

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