Documentation ¶
Index ¶
- Variables
- func CheckMarketPermisson(ctx context.Context, resourceId string) (*models.Market, error)
- func CheckMarketsPermission(ctx context.Context, resourceIds []string) ([]*models.Market, error)
- func Serve(cfg *config.Config)
- type Server
- func (s *Server) Checker(ctx context.Context, req interface{}) error
- func (p *Server) CreateMarket(ctx context.Context, req *pb.CreateMarketRequest) (*pb.CreateMarketResponse, error)
- func (p *Server) DeleteMarkets(ctx context.Context, req *pb.DeleteMarketsRequest) (*pb.DeleteMarketsResponse, error)
- func (p *Server) DescribeMarketUsers(ctx context.Context, req *pb.DescribeMarketUsersRequest) (*pb.DescribeMarketUsersResponse, error)
- func (p *Server) DescribeMarkets(ctx context.Context, req *pb.DescribeMarketsRequest) (*pb.DescribeMarketsResponse, error)
- func (p *Server) ModifyMarket(ctx context.Context, req *pb.ModifyMarketRequest) (*pb.ModifyMarketResponse, error)
- func (p *Server) UserJoinMarket(ctx context.Context, req *pb.UserJoinMarketRequest) (*pb.UserJoinMarketResponse, error)
- func (p *Server) UserLeaveMarket(ctx context.Context, req *pb.UserLeaveMarketRequest) (*pb.UserLeaveMarketResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedStatus = []string{ constants.StatusDisabled, constants.StatusEnabled, }
View Source
var SupportedVisibility = []string{ constants.VisibilityPrivate, constants.VisibilityPublic, }
Functions ¶
func CheckMarketPermisson ¶
func CheckMarketsPermission ¶
Types ¶
type Server ¶
type Server struct { }
func (*Server) CreateMarket ¶
func (p *Server) CreateMarket(ctx context.Context, req *pb.CreateMarketRequest) (*pb.CreateMarketResponse, error)
func (*Server) DeleteMarkets ¶
func (p *Server) DeleteMarkets(ctx context.Context, req *pb.DeleteMarketsRequest) (*pb.DeleteMarketsResponse, error)
func (*Server) DescribeMarketUsers ¶
func (p *Server) DescribeMarketUsers(ctx context.Context, req *pb.DescribeMarketUsersRequest) (*pb.DescribeMarketUsersResponse, error)
func (*Server) DescribeMarkets ¶
func (p *Server) DescribeMarkets(ctx context.Context, req *pb.DescribeMarketsRequest) (*pb.DescribeMarketsResponse, error)
func (*Server) ModifyMarket ¶
func (p *Server) ModifyMarket(ctx context.Context, req *pb.ModifyMarketRequest) (*pb.ModifyMarketResponse, error)
func (*Server) UserJoinMarket ¶
func (p *Server) UserJoinMarket(ctx context.Context, req *pb.UserJoinMarketRequest) (*pb.UserJoinMarketResponse, error)
func (*Server) UserLeaveMarket ¶
func (p *Server) UserLeaveMarket(ctx context.Context, req *pb.UserLeaveMarketRequest) (*pb.UserLeaveMarketResponse, error)
Click to show internal directories.
Click to hide internal directories.