cmd

package
v0.0.0-...-9917867 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Copyright © 2024 github

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2024 github

Index

Constants

View Source
const (
	LogUnused int = iota
	LogFatal
	LogError
	LogWarning
	LogInfo
	LogTrace
	LogAll
)

Variables

View Source
var Backend string = "local"
View Source
var Verbosity int

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func LogAbove

func LogAbove(level int, format string, args ...interface{})

func MirvaDownLoad3

func MirvaDownLoad3(w http.ResponseWriter, r *http.Request)

func MirvaDownLoad4

func MirvaDownLoad4(w http.ResponseWriter, r *http.Request)

func MirvaDownloadArtifact

func MirvaDownloadArtifact(w http.ResponseWriter, r *http.Request)

Download artifacts

func MirvaDownloadServe

func MirvaDownloadServe(w http.ResponseWriter, r *http.Request)

func MirvaRequest

func MirvaRequest(w http.ResponseWriter, r *http.Request)

func MirvaRequestID

func MirvaRequestID(w http.ResponseWriter, r *http.Request)

func MirvaStatus

func MirvaStatus(w http.ResponseWriter, r *http.Request)

func RootHandler

func RootHandler(w http.ResponseWriter, r *http.Request)

Types

type DBLocation

type DBLocation interface {
	DBPATH() string
}

type DBLocationLocal

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

func (DBLocationLocal) DBPATH

func (dbl DBLocationLocal) DBPATH() string

type MirvaSession

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

type SubmitMsg

type SubmitMsg struct {
	ActionRepoRef string   `json:"action_repo_ref"`
	Language      string   `json:"language"`
	QueryPack     string   `json:"query_pack"`
	Repositories  []string `json:"repositories"`
}

func TrySubmitMsg

func TrySubmitMsg(buf []byte) (SubmitMsg, error)

See if the buf contains a json-encoded message

Jump to

Keyboard shortcuts

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