client

package
v0.0.0-...-8671a8c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 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 {
	grpc.ClientConnInterface
	// contains filtered or unexported fields
}

func Dial

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

dail to libra edge proxy

func (*Client) Close

func (cli *Client) Close()

func (*Client) Connect

func (cli *Client) Connect(ctx context.Context) (err error)

func (*Client) CreateRole

func (cli *Client) CreateRole(
	ctx context.Context, index uint32) (role *v1pb.RoleData, err error)

func (*Client) ListRoles

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

func (*Client) Login

func (cli *Client) Login(
	ctx context.Context, state proto.Message) (user *v1pb.UserData, err error)

func (*Client) Recv

func (cli *Client) Recv(ctx context.Context) (msg proto.Message, err error)

func (*Client) SignIn

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

Jump to

Keyboard shortcuts

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