data

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Unlicense Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientType_name = map[int32]string{
		0: "Invalid",
		1: "Web",
		2: "CLI",
		3: "Other",
	}
	ClientType_value = map[string]int32{
		"Invalid": 0,
		"Web":     1,
		"CLI":     2,
		"Other":   3,
	}
)

Enum value maps for ClientType.

View Source
var ClientTypeAlternates = map[string]ClientType{
	"":      ClientType_Invalid,
	"web":   ClientType_Web,
	"cli":   ClientType_CLI,
	"other": ClientType_Other,
}

ClientTypeAlternates contains alternative values for the DynamoDB.ClientType enum

View Source
var File_protos_frontend_data_iam_proto protoreflect.FileDescriptor
View Source
var File_protos_frontend_data_ohlc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bar added in v1.1.0

type Bar struct {
	Volume    int64               `protobuf:"varint,1,opt,name=volume,proto3" json:"volume,omitempty"`
	Weighted  float64             `protobuf:"fixed64,2,opt,name=weighted,proto3" json:"weighted,omitempty"`
	Open      float64             `protobuf:"fixed64,3,opt,name=open,proto3" json:"open,omitempty"`
	Close     float64             `protobuf:"fixed64,4,opt,name=close,proto3" json:"close,omitempty"`
	High      float64             `protobuf:"fixed64,5,opt,name=high,proto3" json:"high,omitempty"`
	Low       float64             `protobuf:"fixed64,6,opt,name=low,proto3" json:"low,omitempty"`
	Number    int32               `protobuf:"varint,7,opt,name=number,proto3" json:"number,omitempty"`
	Otc       bool                `protobuf:"varint,8,opt,name=otc,proto3" json:"otc,omitempty"`
	Timestamp *gopb.UnixTimestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Describes a single aggregated bar of data

func (*Bar) Descriptor deprecated added in v1.1.0

func (*Bar) Descriptor() ([]byte, []int)

Deprecated: Use Bar.ProtoReflect.Descriptor instead.

func (*Bar) GetClose added in v1.1.0

func (x *Bar) GetClose() float64

func (*Bar) GetHigh added in v1.1.0

func (x *Bar) GetHigh() float64

func (*Bar) GetLow added in v1.1.0

func (x *Bar) GetLow() float64

func (*Bar) GetNumber added in v1.1.0

func (x *Bar) GetNumber() int32

func (*Bar) GetOpen added in v1.1.0

func (x *Bar) GetOpen() float64

func (*Bar) GetOtc added in v1.1.0

func (x *Bar) GetOtc() bool

func (*Bar) GetTimestamp added in v1.1.0

func (x *Bar) GetTimestamp() *gopb.UnixTimestamp

func (*Bar) GetVolume added in v1.1.0

func (x *Bar) GetVolume() int64

func (*Bar) GetWeighted added in v1.1.0

func (x *Bar) GetWeighted() float64

func (*Bar) ProtoMessage added in v1.1.0

func (*Bar) ProtoMessage()

func (*Bar) ProtoReflect added in v1.1.0

func (x *Bar) ProtoReflect() protoreflect.Message

func (*Bar) Reset added in v1.1.0

func (x *Bar) Reset()

func (*Bar) String added in v1.1.0

func (x *Bar) String() string

type Client

type Client struct {

	// The ID of the client, as recorded in the system. This value should be saved for later
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The domain for which the client is registered. This value may be used to deny access to certain resources
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// The type of the client. This value may be used to deny access to certain resources
	Type ClientType `protobuf:"varint,3,opt,name=type,proto3,enum=protos.frontend.data.ClientType" json:"type"`
	// contains filtered or unexported fields
}

Describes a Quantum client. Note that this object does not include the secret which should be used to authenticate the client. That particular value will only be made available once when the client is created

func (*Client) Descriptor deprecated

func (*Client) Descriptor() ([]byte, []int)

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetDomain

func (x *Client) GetDomain() string

func (*Client) GetId

func (x *Client) GetId() string

func (*Client) GetType

func (x *Client) GetType() ClientType

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

func (x *Client) ProtoReflect() protoreflect.Message

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type ClientType

type ClientType int32

Describes the type of the client, which will indicate how it should interact with the API

const (
	ClientType_Invalid ClientType = 0 // Used when converting the enum from JSON to hold invalid values
	ClientType_Web     ClientType = 1 // For web (in-browser) clients
	ClientType_CLI     ClientType = 2 // For CLI clients
	ClientType_Other   ClientType = 3 // For clients that do not fit into either type of client
)

func (ClientType) Descriptor

func (ClientType) Descriptor() protoreflect.EnumDescriptor

func (ClientType) Enum

func (x ClientType) Enum() *ClientType

func (ClientType) EnumDescriptor deprecated

func (ClientType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClientType.Descriptor instead.

func (ClientType) Number

func (x ClientType) Number() protoreflect.EnumNumber

func (ClientType) String

func (x ClientType) String() string

func (ClientType) Type

func (*ClientType) UnmarshalJSON added in v1.1.0

func (enum *ClientType) UnmarshalJSON(data []byte) error

UnmarshalJSON converts JSON data into a Data.ClientType

type User

type User struct {

	// The email address that the user may use when logging in
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

Describes a Quantum user. This object will not include any fields which will identify the user to our system. Instead, the user's ID will be extracted from the access token which is passed to authenticate them. This adds an extra layer of security to our system as the user is not allowed to know their own ID directly

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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