account

package
v0.0.0-...-201036b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(sid string) (global.AccountTable, error)

func MakeGetAccountEndpoint

func MakeGetAccountEndpoint(api AccountApi) endpoint.Endpoint

Types

type AccountApi

type AccountApi interface {
	GetAccount(sid string) (balance int64, err error)
}

type AccountSvr

type AccountSvr struct {
}

func (AccountSvr) GetAccount

func (AccountSvr) GetAccount(sid string) (balance int64, err error)

type Handler

type Handler struct {
	GetAccountHandler grpctransport.Handler
}

func (Handler) GetAccount

func (h Handler) GetAccount(ctx context.Context, req *pro.GetAccountReq) (*pro.GetAccountRes, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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