api

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package api contains the web services API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

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

Ctx is the context of the root of the API.

func Router

func Router(db *database.DB, serverConfig, authConfig *viper.Viper, domainConfig []domain.ConfigItem,
	tokenConfig *token.Config,
) (*Ctx, *chi.Mux)

Router provides routes for the whole API.

Directories

Path Synopsis
Package answers provides API services for task answers managing.
Package answers provides API services for task answers managing.
Package auth provides API services related to authentication.
Package auth provides API services related to authentication.
Package contests provides API services for contests managing.
Package contests provides API services for contests managing.
Package currentuser provides the services related to the current user.
Package currentuser provides the services related to the current user.
Package groups provides API services to manage groups.
Package groups provides API services to manage groups.
Package items provides API services for items managing.
Package items provides API services for items managing.
Package threads provides API services for threads managing.
Package threads provides API services for threads managing.
Package users provides API services for users managing.
Package users provides API services for users managing.

Jump to

Keyboard shortcuts

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