auth

package
v0.0.0-...-3bb274c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHttpErrorFromGRPCError

func GetHttpErrorFromGRPCError(err error, c echo.Context) error

func MakeErrorResponse

func MakeErrorResponse(c echo.Context, code int, err error) error

func NewHttpHandler

func NewHttpHandler(e *echo.Group, s *AuthStore)

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

func (*AuthHandler) Login

func (h *AuthHandler) Login(c echo.Context) error

func (*AuthHandler) Register

func (h *AuthHandler) Register(c echo.Context) error

func (*AuthHandler) TestAuth

func (h *AuthHandler) TestAuth(c echo.Context) error

type AuthStore

type AuthStore struct {
	// contains filtered or unexported fields
}

func NewAuthStore

func NewAuthStore(serviceURL string) *AuthStore

func (*AuthStore) ServiceClient

func (s *AuthStore) ServiceClient() authproto.AuthServiceClient

type ResponseError

type ResponseError struct {
	Code    string `json:"rpc_error_code,omitempty"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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