config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

shottower Copyright (C) 2022 Rémy Boulanouar

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointType

type EndpointType int64
const (
	V1 EndpointType = iota
	Stage
)

func (EndpointType) String

func (s EndpointType) String() string

type ShottowerConfig

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

func (*ShottowerConfig) GetDownloadBaseURL

func (s *ShottowerConfig) GetDownloadBaseURL() string

func (*ShottowerConfig) GetEndpointType

func (s *ShottowerConfig) GetEndpointType() EndpointType

func (*ShottowerConfig) GetRenderBaseURL

func (s *ShottowerConfig) GetRenderBaseURL() string

func (*ShottowerConfig) GetRootURL

func (s *ShottowerConfig) GetRootURL() string

func (*ShottowerConfig) GetServeBaseURL

func (s *ShottowerConfig) GetServeBaseURL() string

type ShottowerConfiguration

type ShottowerConfiguration interface {
	GetRootURL() string
	GetRenderBaseURL() string
	GetServeBaseURL() string
	GetDownloadBaseURL() string
	GetEndpointType() EndpointType
}

func NewShottowerConfig

func NewShottowerConfig(baseURL string, endpointType EndpointType) ShottowerConfiguration

Jump to

Keyboard shortcuts

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