client

package
v0.0.0-...-f886c54 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUser

func SetUser(ctx context.Context, client proto.AddUserClientServiceClient, u *User) error

func Test

func Test()

func TestCustomUserClient

func TestCustomUserClient()

Types

type User

type User struct {
	Name     string `json:"name"`
	Class    string `json:"class"`
	RollNum  int64  `json:"roll_num"`
	Metadata []byte `json:"metadata"`
}

func GetUserByID

func GetUserByID(ctx context.Context, client proto.AddUserClientServiceClient, name, class string, roll int64) (*User, error)

Jump to

Keyboard shortcuts

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