api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server hold the gin engine and any clients we need for the API.

func NewServer

func NewServer() Server

NewServer returns a new instance of Server.

func (*Server) Setup

func (s *Server) Setup()

Setup sets any global middlewares then initializes the API.

func (*Server) WithAPIKey

func (s *Server) WithAPIKey(apiKey string)

WithAPIKey sets the API key required for create and delete operations.

func (*Server) WithBuilder

func (s *Server) WithBuilder(b gcloud.CloudRunCommandBuilder)

WithBuilder sets the gcloud command builder.

func (*Server) WithEngine

func (s *Server) WithEngine(e *gin.Engine)

WithEngine sets the gin engine instance for the server.

func (*Server) WithFiatClient

func (s *Server) WithFiatClient(fc fiat.Client)

WithFiatClient sets the Fiat Client.

func (*Server) WithSQLClient

func (s *Server) WithSQLClient(sc sql.Client)

WithSQLClient sets the sql client instance for the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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