models

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReceivedDataCreate

type ReceivedDataCreate struct {
	UID      string      `json:"uid"`
	Password string      `json:"password"`
	User     client.User `json:"user"`
}

ReceivedDataCreate defines the expected data structure to be received as a response when calling the method Create(...) of RedisManager interface

type ReceivedDataDelete

type ReceivedDataDelete struct {
	UID             string `json:"uid"`
	Password        string `json:"password"`
	UserToBeDeleted string `json:"username"`
}

ReceivedDataDelete defines the expected data structure to be received as a response when calling the method Delete(...) of RedisManager interface

type ReceivedDataLogin

type ReceivedDataLogin struct {
	UID      string `json:"uid"`
	Password string `json:"password"`
}

ReceivedDataLogin defines the expected data structure to be received as a response when calling the method Login(...) of RedisManager interface

type ReceivedDataRefresh

type ReceivedDataRefresh struct {
	RefreshToken []byte `json:"refreshtoken"`
}

ReceivedDataRefresh defines the expected data structure to be received as a response when calling the method Refresh(...) of RedisManager interface

type ReceivedDataUpdate

type ReceivedDataUpdate struct {
	UID             string `json:"uid"`
	Password        string `json:"password"`
	UserToBeUpdated string `json:"username"`
	NewPassword     string `json:"userpassword"`
}

ReceivedDataUpdate defines the expected data structure to be received as a response when calling the method Update(...) of RedisManager interface

Jump to

Keyboard shortcuts

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