handler

package
v0.0.0-...-5b3434c Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckHandler

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

CheckHandler handler

func NewCheckHandler

func NewCheckHandler(l core.Logger, cs *service.Check) *CheckHandler

NewCheckHandler コンストラクタ

func (*CheckHandler) HealthCheck

func (ch *CheckHandler) HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck ヘルスチェック用API

type Group

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

Group is handler

func NewGroup

func NewGroup(gs service.Group) *Group

NewGroup コンストラクタ

func (*Group) Create

func (g *Group) Create(w http.ResponseWriter, r *http.Request)

Create Group

type GroupForm

type GroupForm struct {
	Name     string `json:"name"`
	LoginID  string `json:"login_id"`
	Password string `json:"password"`
	UserName string `json:"user_name"`
}

GroupForm フォーム

type User

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

User is handler

func NewUser

func NewUser(l core.Logger, user *service.User, session service.Session) *User

NewUser コンストラクタ

func (*User) Register

func (u *User) Register(w http.ResponseWriter, r *http.Request)

Register ユーザ登録

func (*User) SignIn

func (u *User) SignIn(w http.ResponseWriter, r *http.Request)

SignIn サインイン

type UserForm

type UserForm struct {
	GroupID  string `json:"group_id"`
	LoginID  string `json:"login_id"`
	Password string `json:"password"`
	Name     string `json:"name"`
}

UserForm フォーム

type UserSignInForm

type UserSignInForm struct {
	GroupName string `json:"group_name"`
	LoginID   string `json:"login_id"`
	Password  string `json:"password"`
}

UserSignInForm SignInフォーム

Jump to

Keyboard shortcuts

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