market

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CheckMarketPermisson

func CheckMarketPermisson(ctx context.Context, resourceId string) (*models.Market, error)

func CheckMarketsPermission

func CheckMarketsPermission(ctx context.Context, resourceIds []string) ([]*models.Market, error)

func Serve

func Serve(cfg *config.Config)

Types

type Server

type Server struct {
}

func (*Server) Checker

func (s *Server) Checker(ctx context.Context, req interface{}) error

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 (*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)

Jump to

Keyboard shortcuts

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