utils

package
v0.0.0-...-dfb6647 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendResponse

func SendResponse(c *gin.Context, response Response)

func TimeSince

func TimeSince(startedAt time.Time, getTimeSince func(time.Time) time.Duration) (bool, time.Duration, time.Duration)

Types

type GitHub

type GitHub struct {
	Mode,
	Token,
	URL,
	User string
	Repo   *git.Repository
	Client *github.Client
}

type Response

type Response struct {
	Status  int      `json:"status,omitempty"`
	Message []string `json:"message,omitempty"`
	Error   []string `json:"error,omitempty"`
	Data    any      `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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