teouserscli

package
v0.0.0-...-2e4d9bc Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package teouserscli is teonet teousers service client package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRequest

type UserRequest struct {
	ReqID  uint32     // Request ID need to identify responce
	Prefix string     // User ID or AccessToken prefix (usually it is App ID)
	ID     gocql.UUID // User ID or AccessToken depend on type of request
}

UserRequest is data structure received by ComCheckUser and ComCreateUser functions.

func (*UserRequest) MarshalBinary

func (req *UserRequest) MarshalBinary() (data []byte, err error)

MarshalBinary encodes UserRequest data into text buffer.

func (*UserRequest) MarshalText

func (req *UserRequest) MarshalText() (data []byte, err error)

MarshalText encodes UserRequest data into text buffer.

func (*UserRequest) UnmarshalBinary

func (req *UserRequest) UnmarshalBinary(data []byte) (err error)

UnmarshalBinary decode binary buffer into UserRequest receiver data.

func (*UserRequest) UnmarshalText1

func (req *UserRequest) UnmarshalText1(data []byte) (err error)

UnmarshalText decode text buffer into UserRequest receiver data.

type UserResponce

type UserResponce struct {
	ReqID       uint32
	ID          gocql.UUID
	AccessToken gocql.UUID
	Prefix      string
}

UserResponce is data structure returned by ComCreateUser function.

func (*UserResponce) MarshalBinary

func (res *UserResponce) MarshalBinary() (data []byte, err error)

MarshalBinary encodes UserResponce data into binary buffer.

func (*UserResponce) UnmarshalBinary

func (res *UserResponce) UnmarshalBinary(data []byte) (err error)

UnmarshalBinary decode binary buffer into UserResponce receiver data.

Jump to

Keyboard shortcuts

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