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 string) error Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_cinema.CinemaCombine, int64, error) Get(u string) (*pb_catalog_cinema.CinemaCombine, error) GetCity(u string) (*pb_catalog_city.CityCombine, error) GetHalls(u string, page, per_page int64, filter, sort interface{}) ([]*pb_catalog_hall.HallCombine, int64, error) GetSeances(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error) IsExist(u string) 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 string) error Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_city.CityCombine, int64, error) Get(u string) (*pb_catalog_city.CityCombine, error) GetCinemas(u string, page, per_page int64, filter, sort interface{}) ([]*pb_catalog_cinema.CinemaCombine, int64, error) GetSeances(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error) GetTimezone(u string) (string, error) IsExist(u string) 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 string) error Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_hall.HallCombine, int64, error) Get(u string) (*pb_catalog_hall.HallCombine, error) IsExist(u string) 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 string) error Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_movie.MovieCombine, int64, error) Get(u string) (*pb_catalog_movie.MovieCombine, error) IsExist(u string) error GetSeances(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(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_schedule.ScheduleCombine, int64, error) Get(u string) (*pb_catalog_schedule.ScheduleCombine, 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 string) error Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_catalog_seance.SeanceCombine, int64, error) Get(u string) (*pb_catalog_seance.SeanceCombine, error) IsExist(u string) error GetCity(u string) (*pb_catalog_city.CityCombine, error) GetCinema(u string) (*pb_catalog_cinema.CinemaCombine, error) GetHall(u string) (*pb_catalog_hall.HallCombine, error) GetMovie(u string) (*pb_catalog_movie.MovieCombine, error) GetLocal(u string) (*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"` Get opts `mapstructure:"get"` UpdateMoviesParent opts `mapstructure:"update_movies_parent"` } `mapstructure:"schedule"` }
Click to show internal directories.
Click to hide internal directories.