handlers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthHttp

func NewAuthHttp(authService authService) *authHTTP

func NewChatHttp

func NewChatHttp(chatService chatService) *chatHTTP

func NewUserHttp

func NewUserHttp(userService userService) *userHTTP

Types

type CreateUserRequest

type CreateUserRequest struct {
	UserName string `json:"userName"`
	Password string `json:"password"`
}

func (*CreateUserRequest) Validate

func (r *CreateUserRequest) Validate() bool

type CreateUserResponse

type CreateUserResponse struct {
	Id       uint64 `json:"id"`
	UserName string `json:"userName"`
}

type LoginResponse

type LoginResponse struct {
	Url string `json:"url"`
}

Jump to

Keyboard shortcuts

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