sdk

package
v0.0.0-...-0039ccc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(addr string, opts ...grpc.DialOption) (_ *Client, err error)

func (*Client) Close

func (cli *Client) Close()

func (*Client) CreateRole

func (cli *Client) CreateRole(ctx context.Context, index int32) (
	role *ptapi_v1.Role, err error)

func (*Client) GetConn

func (cli *Client) GetConn() *grpc.ClientConn

func (*Client) ListRoles

func (cli *Client) ListRoles(
	ctx context.Context) (roles []*ptapi_v1.Role, err error)

func (*Client) Login

func (cli *Client) Login(
	ctx context.Context, appId string, state proto.Message) (
	user *ptapi_v1.User, err error)

func (*Client) Recv

func (cli *Client) Recv() <-chan proto.Message

func (*Client) SignIn

func (cli *Client) SignIn(ctx context.Context, roleId string) (err error)

type OnStreamErrorFunc

type OnStreamErrorFunc func(error) error

Jump to

Keyboard shortcuts

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