entity

package
v0.0.0-...-c3afde3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package entity defines all structs that flow through all application layers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrEmptyField

func ErrEmptyField(field string) error

ErrEmptyField returns codes.InvalidArgument explained that the field is empty.

func ErrInternal

func ErrInternal(message string) error

ErrInternal returns codes.Internal explained that unexpected behavior occurred in system.

func ErrInvalidArgument

func ErrInvalidArgument(message string) error

ErrInvalidArgument returns codes.InvalidArgument explained that argument(s) is invalid.

func ErrUnauthorized

func ErrUnauthorized() error

ErrUnauthorized returns codes.Unauthenticated explained that credential might be wrong.

Types

type Token

type Token struct {
	AccessToken           string
	AccessTokenExpiresIn  uint32
	RefreshToken          string
	RefreshTokenExpiresIn uint32
	TokenType             string
}

Token represents token.

Jump to

Keyboard shortcuts

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