permission

package
v0.0.0-...-193f563 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePermissionFindByGroupEndpoint

func MakePermissionFindByGroupEndpoint(s service.Service) endpoint.Endpoint

MakePermissionFindByGroupEndpoint .

func MakePermissionFindByUserEndpoint

func MakePermissionFindByUserEndpoint(s service.Service) endpoint.Endpoint

MakeUserPermissionFindEndpoint .

func MakeUpdatePermissionEndpoint

func MakeUpdatePermissionEndpoint(s service.Service) endpoint.Endpoint

MakeUpdatePermissionEndpoint .

Types

type FindByGroupRequest

type FindByGroupRequest struct {
	GroupID      domain.UUID `json:"-"`
	TableName    string      `json:"table_name"`
	DatabaseName string      `json:"database_name"`
}

FindByGroupRequest request for add view

type FindByGroupResponse

type FindByGroupResponse struct {
	Status      string              `json:"status"`
	Permissions []domain.Permission `json:"permissions"`
}

FindByGroupResponse response for list view

type FindByUserRequest

type FindByUserRequest struct {
	UserID       domain.UUID `json:"-"`
	TableName    string      `json:"table_name"`
	DatabaseName string      `json:"database_name"`
}

FindByUserRequest request for add view

type FindByUserResponse

type FindByUserResponse struct {
	Status      string              `json:"status"`
	Permissions []domain.Permission `json:"permissions"`
}

FindByUserResponse response for list view

type UpdateRequest

type UpdateRequest struct {
	Permission *domain.Permission `json:"permission"`
}

UpdateRequest request for add view

type UpdateResponse

type UpdateResponse struct {
	Status     string             `json:"status"`
	Permission *domain.Permission `json:"permission"`
}

UpdateResponse response for list view

Jump to

Keyboard shortcuts

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