demo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HELLO = mongo.NewSchema("hello").
	SetIndex(mongo.IndexUnique("name", true))
View Source
var Service = service.NewService("demo").
	SetSchema(HELLO).
	SetHandler(service.Handler{
		Method: "GET",
		Path:   "/hello/:name/:value",
		Func:   save_hello,
	}).
	SetHandler(service.Handler{
		Method: "GET",
		Path:   "/hello/:name/",
		Func:   say_hello,
	})

Functions

This section is empty.

Types

type Hello

type Hello struct {
	Name  string
	Value string
}

func (*Hello) FilterID

func (x *Hello) FilterID() primitive.D

Jump to

Keyboard shortcuts

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