benchmark

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventsIdDocumentsIdGet

func EventsIdDocumentsIdGet(c *backend.Client, ctx context.Context, bearer string, eventId string, documentId string, wantedStatusCode int) (d time.Duration, err error)

func EventsIdGet

func EventsIdGet(c *backend.Client, ctx context.Context, id string, p backend.GetEventsIdParams, wantedStatusCode int) (d time.Duration, err error)

func EventsPost

func EventsPost(c *backend.Client, ctx context.Context, bearer string, b backend.PostEventsJSONRequestBody, wantedStatusCode int) (d time.Duration, err error)

func ResetPost

func ResetPost(c *backend.Client, ctx context.Context) (d time.Duration, err error)

func TestEndpoints

func TestEndpoints(c *backend.Client) error

func UsersIdGet

func UsersIdGet(c *backend.Client, ctx context.Context, id string, bearer string, wantedStatusCode int) (d time.Duration, err error)

func UsersIdStarPost

func UsersIdStarPost(c *backend.Client, ctx context.Context, userId string, wantedStatusCode int) (d time.Duration, err error)

func UsersSignInPost

func UsersSignInPost(c *backend.Client, ctx context.Context, b backend.LoginBody, wantedStatusCode int) (d time.Duration, token string, err error)

Types

type Event

type Event struct {
	Id          Id              `json:"id"`
	Name        string          `json:"name"`
	Description *string         `json:"description,omitempty"`
	Location    *string         `json:"location,omitempty"`
	Datetimes   []EventDatetime `json:"datetimes"`
	Published   bool            `json:"published"`
	Completed   bool            `json:"completed"`
	UserId      Id              `json:"user_id"`
}

type EventDatetime

type EventDatetime struct {
	Start time.Time `json:"start"`
	End   time.Time `json:"end"`
}

type EventDocument

type EventDocument struct {
	EventId Id     `json:"event_id"`
	Id      Id     `json:"id"`
	Name    string `json:"name"`
	Url     string `json:"url"`
}

func EventsIdDocumentsGet

func EventsIdDocumentsGet(c *backend.Client, ctx context.Context, bearer string, id string, p backend.GetEventsIdDocumentsParams, wantedStatusCode int) (documents []EventDocument, d time.Duration, err error)

type EventEmbed

type EventEmbed struct {
	Event
	User      User            `json:"user"`
	Documents []EventDocument `json:"documents"`
}

func EventsGet

func EventsGet(c *backend.Client, ctx context.Context, p backend.GetEventsParams, wantedStatusCode int) (events []EventEmbed, d time.Duration, err error)

type Id

type Id string

func (*Id) UnmarshalJSON

func (id *Id) UnmarshalJSON(b []byte) error

type Log

type Log struct {
	Target   string `json:"target" yaml:"target"`
	Duration string `json:"duration" yaml:"duration"`
}

type Result

type Result struct {
	Score uint64 `json:"score" yaml:"score"`
	Error string `json:"error,omitempty" yaml:"error,omitempty"`
	Logs  []Log  `json:"logs,omitempty" yaml:"logs,omitempty"`
}

func Run

func Run(c *backend.Client, d time.Duration, o struct{ Verbose bool }) (r Result)

type StarCount

type StarCount struct {
	Count uint `json:"count"`
}

type User

type User struct {
	Id                  Id      `json:"id"`
	Name                string  `json:"name"`
	PostEventAvailabled bool    `json:"post_event_availabled"`
	Manage              bool    `json:"manage"`
	Admin               bool    `json:"admin"`
	TwitterId           *string `json:"twitter_id,omitempty"`
	GithubUsername      *string `json:"github_username,omitempty"`
	StarCount           uint64  `json:"star_count"`
}

func UsersGet

func UsersGet(c *backend.Client, ctx context.Context, bearer string, wantedStatusCode int) (users []User, d time.Duration, err error)

Jump to

Keyboard shortcuts

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