service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerService

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

func NewConsumerService

func NewConsumerService(repo contract.UserRepository, logger *slog.Logger) (*ConsumerService, error)

func (*ConsumerService) AddRoute

func (c *ConsumerService) AddRoute(mux *http.ServeMux)

type UserService

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

func NewUserService

func NewUserService(repo contract.UserRepository, logger *slog.Logger) (*UserService, error)

func (*UserService) AddRoute

func (u *UserService) AddRoute(h *http.ServeMux)

func (*UserService) UserProfile

func (u *UserService) UserProfile(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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