model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

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

Request data model for requestinfo

func NewRequest

func NewRequest(mongo *service.Mongo) *Request

func (*Request) Create

func (r *Request) Create(ctx context.Context, slug string, info *schema.RequestInfo) (*schema.Request, error)

func (*Request) List

func (r *Request) List(ctx context.Context, slug string) ([]*schema.Request, error)

Jump to

Keyboard shortcuts

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