cmd

package
v0.0.0-...-efa5bea Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2019 NAME HERE <EMAIL ADDRESS>

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 © 2019 NAME HERE <EMAIL ADDRESS>

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 © 2019 NAME HERE <EMAIL ADDRESS>

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 © 2019 NAME HERE <EMAIL ADDRESS>

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 © 2019 NAME HERE <EMAIL ADDRESS>

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.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

type Contract

type Contract struct {
	ContType         ContractType `json:"contract_type"`
	DisplayOrder     string       `json:"display_order"`
	Hidden           bool         `json:"hidden"`
	Id               string       `json:"id"`
	Info             string       `json:"-"`
	MarketId         string       `json:"market_id"`
	Name             string       `json:"name"`
	OutcomeTimestamp string       `json:"outcome_timestamp"`
	Slug             string       `json:"string"`
	StateOrOutcome   string       `json:"state_or_outcome"`
}

type ContractType

type ContractType struct {
	Name  string `json:"name"`
	Param string `json:"param"`
}

type Contracts

type Contracts struct {
	Contracts []Contract `json:"contracts"`
}

type Event

type Event struct {
	Bettable      bool      `json:"bettable"`
	Created       string    `json:"created"`
	Description   string    `json:"description"`
	DisplayOrder  int       `json:"display_order"`
	EndDate       string    `json:"end_date"`
	FullSlug      string    `json:"full_slug"`
	Hidden        bool      `json:"hidden"`
	Id            string    `json:"id"`
	InplayEnabled bool      `json:"inplay_enabled"`
	Modified      string    `json:"modified"`
	Name          string    `json:"name"`
	ParentId      string    `json:"parent_id"`
	ShortName     string    `json:"short_name"`
	Slug          string    `json:"slug"`
	SpecialRules  string    `json:"special_rules"`
	StartDate     string    `json:"start_date"`
	StartDateTime string    `json:"start_datetime"`
	State         string    `json:"upcoming"`
	EventType     EventType `json:"type"`
}

type EventType

type EventType struct {
	Domain string `json:"domain"`
	Scope  string `json:"scope"`
}

type Events

type Events struct {
	Events     []Event `json:"events"`
	Pagination string  `json:"-"`
}

type Market

type Market struct {
	MarkType           MartketType `json:"market_type"`
	BetDelay           int         `json:"bet_delay"`
	Category           string      `json:"category"`
	Complete           bool        `json:"complete"`
	ContractSelections string      `json:"-"`
	Description        string      `json:"description"`
	DisplayOrder       int         `json:"display_order"`
	DisplayType        string      `json:"display_type"`
	EventId            string      `json:"event_id"`
	Hidden             bool        `json:"hidden"`
	Id                 string      `json:"id"`
	Name               string      `json:"name"`
	Slug               string      `json:"slug"`
	State              string      `json:"state"`
	WinnerCount        int         `json:"winner_count"`
}

type Markets

type Markets struct {
	Markets []Market `json:"markets"`
}

type MartketType

type MartketType struct {
	Name  string `json:"name"`
	Param string `json:"param"`
}

type Response

type Response struct {
	Factor string `json:"factor"`
	Stop   string `json:"stop"`
	Token  string `json:"token"`
	Verify bool   `json:"verify"`
}

Jump to

Keyboard shortcuts

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