rest_v1

package
v0.0.0-...-6a82c54 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler(w http.ResponseWriter, r *http.Request)

Types

type LoginResponse

type LoginResponse struct {
	TokenType             string `json:"tokenType"`
	AccessToken           string `json:"accessToken"`
	AccessTokenExpiresIn  int64  `json:"accessTokenExpiresIn"`
	RefreshToken          string `json:"refreshToken"`
	RefreshTokenExpiresIn int64  `json:"refreshTokenExpiresIn"`
}

func (LoginResponse) MarshalEasyJSON

func (v LoginResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoginResponse) MarshalJSON

func (v LoginResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoginResponse) UnmarshalEasyJSON

func (v *LoginResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoginResponse) UnmarshalJSON

func (v *LoginResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserCreds

type UserCreds struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

func (UserCreds) MarshalEasyJSON

func (v UserCreds) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserCreds) MarshalJSON

func (v UserCreds) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UserCreds) UnmarshalEasyJSON

func (v *UserCreds) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserCreds) UnmarshalJSON

func (v *UserCreds) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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