auth

package
v0.0.0-...-ca0d4d1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	SignIn endpoint.Endpoint
}

Endpoints for authorization.

func MakeAuthEndpoints

func MakeAuthEndpoints(svc service.AuthService) Endpoints

MakeAuthEndpoints for authorization.

type SignInRequest

type SignInRequest struct {
	Login    string `json:"login"`
	Password string `json:"password"`
	IP       string `json:"ip"`
}

type SignInResponse

type SignInResponse struct {
	Ok bool `json:"ok"`
}

Jump to

Keyboard shortcuts

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