dto

package
v0.0.0-...-a978bc6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Message string `json:"message"`
	OK      bool   `json:"ok"`
}

BaseResponse provides base response for token

func (*BaseResponse) String

func (b *BaseResponse) String() string

String provides string repsentation

type Token

type Token struct {
	Token  string `json:"token"`
	UserID string `json:"user_id"`
}

Token provides dto for firebase token

func (*Token) FromReader

func (t *Token) FromReader(reader io.Reader) error

FromReader converts data from request

func (*Token) Validate

func (t *Token) Validate(validate *validator.Validate) error

Validate validates registration token data

Jump to

Keyboard shortcuts

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