contract

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	ListenAndServe() error
	Shutdown(context.Context) error
}

type Service

type Service interface {
	AddRoute(mux *http.ServeMux)
}

type UserProfile

type UserProfile struct {
	UserID   string
	Nickname string
	Email    string
	Avatar   string
}

type UserRepository

type UserRepository interface {
	GetUserProfile(userid string) (*UserProfile, error)
}

Jump to

Keyboard shortcuts

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