http

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserInput

type CreateUserInput struct {
	Sub    string     `json:"sub"`
	Secret string     `json:"secret"`
	UserID *id.UserID `json:"userId"`
	TeamID *id.TeamID `json:"teamId"`
}

type CreateUserOutput

type CreateUserOutput struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
}

type PublishedController

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

func NewPublishedController

func NewPublishedController(usecase interfaces.Published) *PublishedController

func (*PublishedController) Data

func (c *PublishedController) Data(ctx context.Context, name string) (io.Reader, error)

func (*PublishedController) Index

func (c *PublishedController) Index(ctx context.Context, name string, url *url.URL) (string, error)

func (*PublishedController) Metadata

type UserController

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

func NewUserController

func NewUserController(usecase interfaces.User) *UserController

func (*UserController) CreateUser

func (c *UserController) CreateUser(ctx context.Context, input CreateUserInput) (interface{}, error)

Jump to

Keyboard shortcuts

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