GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — httpsms/api/main.go at main · ossfork/httpsms

Expand file tree

/

main.go

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (40 loc) · 1.12 KB
/

main.go

Copy path

File metadata and controls

46 lines (40 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package main
import (
"fmt"
"os"
"strings"
"github.com/NdoleStudio/httpsms/docs"
"github.com/NdoleStudio/httpsms/pkg/di"
)
// Version is injected at runtime
var Version string
// @title httpSMS API Reference
// @version 1.0
// @description Use your Android phone to send and receive SMS messages via a simple programmable API with end-to-end encryption.
//
// @contact.name [email protected]
// @contact.email [email protected]
//
// @license.name AGPL-3.0
// @license.url https://raw.githubusercontent.com/NdoleStudio/http-sms-manager/main/LICENSE
//
// @host api.httpsms.com
// @schemes https
// @BasePath /v1
//
// @securitydefinitions.apikey ApiKeyAuth
// @in header
// @name x-api-Key
func main() {
if len(os.Args) == 1 {
di.LoadEnv()
}
if host := strings.TrimSpace(os.Getenv("SWAGGER_HOST")); len(host) > 0 {
docs.SwaggerInfo.Host = host
}
if len(Version) > 0 {
docs.SwaggerInfo.Version = Version
}
container := di.NewContainer(os.Getenv("GCP_PROJECT_ID"), Version)
container.Logger().Info(container.App().Listen(fmt.Sprintf("%s:%s", os.Getenv("APP_HOST"), os.Getenv("APP_PORT"))).Error())
}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.