market

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: Apache-2.0 Imports: 13 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) Builder

func (p *Server) Builder(ctx context.Context, req interface{}) interface{}

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