Documentation
¶
Index ¶
- Variables
- type Access
- func (x *Access) ClearLocation()
- func (x *Access) GetAllowed() bool
- func (x *Access) GetCurrency() string
- func (x *Access) GetLocation() *UserLocation
- func (x *Access) HasLocation() bool
- func (*Access) ProtoMessage()
- func (x *Access) ProtoReflect() protoreflect.Message
- func (x *Access) Reset()
- func (x *Access) SetAllowed(v bool)
- func (x *Access) SetCurrency(v string)
- func (x *Access) SetLocation(v *UserLocation)
- func (x *Access) String() string
- type AccessRequest
- func (x *AccessRequest) ClearApplication()
- func (x *AccessRequest) ClearCoordinates()
- func (x *AccessRequest) ClearSession()
- func (x *AccessRequest) GetApplication() string
- func (x *AccessRequest) GetCoordinates() *Coordinates
- func (x *AccessRequest) GetOperation() OperationType
- func (x *AccessRequest) GetSession() string
- func (x *AccessRequest) HasApplication() bool
- func (x *AccessRequest) HasCoordinates() bool
- func (x *AccessRequest) HasSession() bool
- func (*AccessRequest) ProtoMessage()
- func (x *AccessRequest) ProtoReflect() protoreflect.Message
- func (x *AccessRequest) Reset()
- func (x *AccessRequest) SetApplication(v string)
- func (x *AccessRequest) SetCoordinates(v *Coordinates)
- func (x *AccessRequest) SetOperation(v OperationType)
- func (x *AccessRequest) SetSession(v string)
- func (x *AccessRequest) String() string
- type AccessRequest_builder
- type Access_builder
- type Coordinates
- func (x *Coordinates) ClearAccuracy()
- func (x *Coordinates) ClearAltitude()
- func (x *Coordinates) ClearAltitudeAccuracy()
- func (x *Coordinates) ClearHeading()
- func (x *Coordinates) ClearSpeed()
- func (x *Coordinates) GetAccuracy() float32
- func (x *Coordinates) GetAltitude() float32
- func (x *Coordinates) GetAltitudeAccuracy() float32
- func (x *Coordinates) GetHeading() int32
- func (x *Coordinates) GetLatitude() float32
- func (x *Coordinates) GetLongitude() float32
- func (x *Coordinates) GetSpeed() int32
- func (x *Coordinates) HasAccuracy() bool
- func (x *Coordinates) HasAltitude() bool
- func (x *Coordinates) HasAltitudeAccuracy() bool
- func (x *Coordinates) HasHeading() bool
- func (x *Coordinates) HasSpeed() bool
- func (*Coordinates) ProtoMessage()
- func (x *Coordinates) ProtoReflect() protoreflect.Message
- func (x *Coordinates) Reset()
- func (x *Coordinates) SetAccuracy(v float32)
- func (x *Coordinates) SetAltitude(v float32)
- func (x *Coordinates) SetAltitudeAccuracy(v float32)
- func (x *Coordinates) SetHeading(v int32)
- func (x *Coordinates) SetLatitude(v float32)
- func (x *Coordinates) SetLongitude(v float32)
- func (x *Coordinates) SetSpeed(v int32)
- func (x *Coordinates) String() string
- type Coordinates_builder
- type OperationType
- type UserLocation
- func (x *UserLocation) GetCity() string
- func (x *UserLocation) GetCountry() string
- func (x *UserLocation) GetRegion() string
- func (*UserLocation) ProtoMessage()
- func (x *UserLocation) ProtoReflect() protoreflect.Message
- func (x *UserLocation) Reset()
- func (x *UserLocation) SetCity(v string)
- func (x *UserLocation) SetCountry(v string)
- func (x *UserLocation) SetRegion(v string)
- func (x *UserLocation) String() string
- type UserLocation_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OperationType_name = map[int32]string{ 0: "depositing", 1: "withdrawal", } OperationType_value = map[string]int32{ "depositing": 0, "withdrawal": 1, } )
Enum value maps for OperationType.
View Source
var File_linq_geo_operations_v1_operations_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
// Boolean flag that shows is operation allowed or not
Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"`
// Determined user location based on coordinates
Location *UserLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Currency or game id for which access rules applied
Currency string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
// contains filtered or unexported fields
}
Response payload with an access status
func (*Access) GetLocation ¶
func (x *Access) GetLocation() *UserLocation
func (*Access) ProtoReflect ¶
func (x *Access) ProtoReflect() protoreflect.Message
func (*Access) SetLocation ¶
func (x *Access) SetLocation(v *UserLocation)
type AccessRequest ¶
type AccessRequest struct {
// Operation type, see enum for details
Operation OperationType `protobuf:"varint,1,opt,name=operation,proto3,enum=linq.geo.operations.v1.OperationType" json:"operation,omitempty"`
// User device current coordinates
Coordinates *Coordinates `protobuf:"bytes,2,opt,name=coordinates,proto3,oneof" json:"coordinates,omitempty"`
// Optional code of an application
Application *string `protobuf:"bytes,3,opt,name=application,proto3,oneof" json:"application,omitempty"`
// Optional device profiling session id
Session *string `protobuf:"bytes,4,opt,name=session,proto3,oneof" json:"session,omitempty"`
// contains filtered or unexported fields
}
Payload with an access request
func (*AccessRequest) ClearApplication ¶
func (x *AccessRequest) ClearApplication()
func (*AccessRequest) ClearCoordinates ¶
func (x *AccessRequest) ClearCoordinates()
func (*AccessRequest) ClearSession ¶
func (x *AccessRequest) ClearSession()
func (*AccessRequest) GetApplication ¶
func (x *AccessRequest) GetApplication() string
func (*AccessRequest) GetCoordinates ¶
func (x *AccessRequest) GetCoordinates() *Coordinates
func (*AccessRequest) GetOperation ¶
func (x *AccessRequest) GetOperation() OperationType
func (*AccessRequest) GetSession ¶
func (x *AccessRequest) GetSession() string
func (*AccessRequest) HasApplication ¶
func (x *AccessRequest) HasApplication() bool
func (*AccessRequest) HasCoordinates ¶
func (x *AccessRequest) HasCoordinates() bool
func (*AccessRequest) HasSession ¶
func (x *AccessRequest) HasSession() bool
func (*AccessRequest) ProtoMessage ¶
func (*AccessRequest) ProtoMessage()
func (*AccessRequest) ProtoReflect ¶
func (x *AccessRequest) ProtoReflect() protoreflect.Message
func (*AccessRequest) Reset ¶
func (x *AccessRequest) Reset()
func (*AccessRequest) SetApplication ¶
func (x *AccessRequest) SetApplication(v string)
func (*AccessRequest) SetCoordinates ¶
func (x *AccessRequest) SetCoordinates(v *Coordinates)
func (*AccessRequest) SetOperation ¶
func (x *AccessRequest) SetOperation(v OperationType)
func (*AccessRequest) SetSession ¶
func (x *AccessRequest) SetSession(v string)
func (*AccessRequest) String ¶
func (x *AccessRequest) String() string
type AccessRequest_builder ¶
type AccessRequest_builder struct {
// Operation type, see enum for details
Operation OperationType
// User device current coordinates
Coordinates *Coordinates
// Optional code of an application
Application *string
// Optional device profiling session id
Session *string
// contains filtered or unexported fields
}
func (AccessRequest_builder) Build ¶
func (b0 AccessRequest_builder) Build() *AccessRequest
type Access_builder ¶
type Access_builder struct {
// Boolean flag that shows is operation allowed or not
Allowed bool
// Determined user location based on coordinates
Location *UserLocation
// Currency or game id for which access rules applied
Currency string
// contains filtered or unexported fields
}
func (Access_builder) Build ¶
func (b0 Access_builder) Build() *Access
type Coordinates ¶
type Coordinates struct {
Accuracy *float32 `protobuf:"fixed32,1,opt,name=accuracy,proto3,oneof" json:"accuracy,omitempty"`
Altitude *float32 `protobuf:"fixed32,2,opt,name=altitude,proto3,oneof" json:"altitude,omitempty"`
AltitudeAccuracy *float32 `protobuf:"fixed32,3,opt,name=altitudeAccuracy,proto3,oneof" json:"altitudeAccuracy,omitempty"`
Heading *int32 `protobuf:"varint,4,opt,name=heading,proto3,oneof" json:"heading,omitempty"`
// Required field with latitude
Latitude float32 `protobuf:"fixed32,5,opt,name=latitude,proto3" json:"latitude,omitempty"`
// Required field with longitude
Longitude float32 `protobuf:"fixed32,6,opt,name=longitude,proto3" json:"longitude,omitempty"`
Speed *int32 `protobuf:"varint,7,opt,name=speed,proto3,oneof" json:"speed,omitempty"`
// contains filtered or unexported fields
}
Array of data generated by devices (iOS) and on which service are deternimes in which region user is currently localed
func (*Coordinates) ClearAccuracy ¶
func (x *Coordinates) ClearAccuracy()
func (*Coordinates) ClearAltitude ¶
func (x *Coordinates) ClearAltitude()
func (*Coordinates) ClearAltitudeAccuracy ¶
func (x *Coordinates) ClearAltitudeAccuracy()
func (*Coordinates) ClearHeading ¶
func (x *Coordinates) ClearHeading()
func (*Coordinates) ClearSpeed ¶
func (x *Coordinates) ClearSpeed()
func (*Coordinates) GetAccuracy ¶
func (x *Coordinates) GetAccuracy() float32
func (*Coordinates) GetAltitude ¶
func (x *Coordinates) GetAltitude() float32
func (*Coordinates) GetAltitudeAccuracy ¶
func (x *Coordinates) GetAltitudeAccuracy() float32
func (*Coordinates) GetHeading ¶
func (x *Coordinates) GetHeading() int32
func (*Coordinates) GetLatitude ¶
func (x *Coordinates) GetLatitude() float32
func (*Coordinates) GetLongitude ¶
func (x *Coordinates) GetLongitude() float32
func (*Coordinates) GetSpeed ¶
func (x *Coordinates) GetSpeed() int32
func (*Coordinates) HasAccuracy ¶
func (x *Coordinates) HasAccuracy() bool
func (*Coordinates) HasAltitude ¶
func (x *Coordinates) HasAltitude() bool
func (*Coordinates) HasAltitudeAccuracy ¶
func (x *Coordinates) HasAltitudeAccuracy() bool
func (*Coordinates) HasHeading ¶
func (x *Coordinates) HasHeading() bool
func (*Coordinates) HasSpeed ¶
func (x *Coordinates) HasSpeed() bool
func (*Coordinates) ProtoMessage ¶
func (*Coordinates) ProtoMessage()
func (*Coordinates) ProtoReflect ¶
func (x *Coordinates) ProtoReflect() protoreflect.Message
func (*Coordinates) Reset ¶
func (x *Coordinates) Reset()
func (*Coordinates) SetAccuracy ¶
func (x *Coordinates) SetAccuracy(v float32)
func (*Coordinates) SetAltitude ¶
func (x *Coordinates) SetAltitude(v float32)
func (*Coordinates) SetAltitudeAccuracy ¶
func (x *Coordinates) SetAltitudeAccuracy(v float32)
func (*Coordinates) SetHeading ¶
func (x *Coordinates) SetHeading(v int32)
func (*Coordinates) SetLatitude ¶
func (x *Coordinates) SetLatitude(v float32)
func (*Coordinates) SetLongitude ¶
func (x *Coordinates) SetLongitude(v float32)
func (*Coordinates) SetSpeed ¶
func (x *Coordinates) SetSpeed(v int32)
func (*Coordinates) String ¶
func (x *Coordinates) String() string
type Coordinates_builder ¶
type Coordinates_builder struct {
Accuracy *float32
Altitude *float32
AltitudeAccuracy *float32
Heading *int32
// Required field with latitude
Latitude float32
// Required field with longitude
Longitude float32
Speed *int32
// contains filtered or unexported fields
}
func (Coordinates_builder) Build ¶
func (b0 Coordinates_builder) Build() *Coordinates
type OperationType ¶
type OperationType int32
Operation types for access checking
const ( // Putting money via replenishment within card or apple pay OperationType_depositing OperationType = 0 // Getting money from game to wallet for further // sending to card or bank account OperationType_withdrawal OperationType = 1 )
func (OperationType) Descriptor ¶
func (OperationType) Descriptor() protoreflect.EnumDescriptor
func (OperationType) Enum ¶
func (x OperationType) Enum() *OperationType
func (OperationType) Number ¶
func (x OperationType) Number() protoreflect.EnumNumber
func (OperationType) String ¶
func (x OperationType) String() string
func (OperationType) Type ¶
func (OperationType) Type() protoreflect.EnumType
type UserLocation ¶
type UserLocation struct {
// Two-letter country code
Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
// Two-letter region code, for US it is a state code
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
// Name of location, like town or city
City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
// contains filtered or unexported fields
}
User location determamined based on coordinates
func (*UserLocation) GetCity ¶
func (x *UserLocation) GetCity() string
func (*UserLocation) GetCountry ¶
func (x *UserLocation) GetCountry() string
func (*UserLocation) GetRegion ¶
func (x *UserLocation) GetRegion() string
func (*UserLocation) ProtoMessage ¶
func (*UserLocation) ProtoMessage()
func (*UserLocation) ProtoReflect ¶
func (x *UserLocation) ProtoReflect() protoreflect.Message
func (*UserLocation) Reset ¶
func (x *UserLocation) Reset()
func (*UserLocation) SetCity ¶
func (x *UserLocation) SetCity(v string)
func (*UserLocation) SetCountry ¶
func (x *UserLocation) SetCountry(v string)
func (*UserLocation) SetRegion ¶
func (x *UserLocation) SetRegion(v string)
func (*UserLocation) String ¶
func (x *UserLocation) String() string
type UserLocation_builder ¶
type UserLocation_builder struct {
// Two-letter country code
Country string
// Two-letter region code, for US it is a state code
Region string
// Name of location, like town or city
City string
// contains filtered or unexported fields
}
func (UserLocation_builder) Build ¶
func (b0 UserLocation_builder) Build() *UserLocation
Source Files
¶
- operations.pb.go
Click to show internal directories.
Click to hide internal directories.