server

package
v0.0.0-...-ee3211a Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: AGPL-3.0 Imports: 10 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 struct {
	http.Handler

	Run func(addr ...string) (err error)
	// contains filtered or unexported fields
}

func NewServer

func NewServer(store repository.Store, options ServerOptions) *Server

func (*Server) Validate

func (s *Server) Validate(c *gin.Context, notebook string) bool

Validate validates if token provided in the request's header is valid for provided notebook ID

type ServerOptions

type ServerOptions struct {
	PrivateKey  string
	HashingCost int
}

Jump to

Keyboard shortcuts

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