Documentation ¶
Index ¶
- Variables
- func RegisterAssetsServer(s grpc.ServiceRegistrar, srv AssetsServer)
- func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)deprecated
- func (x *Asset) GetGroup() Groups
- func (x *Asset) GetID() string
- func (x *Asset) GetIsOTC() bool
- func (x *Asset) GetName() string
- func (x *Asset) GetSourceID() *SourceID
- func (*Asset) ProtoMessage()
- func (x *Asset) ProtoReflect() protoreflect.Message
- func (x *Asset) Reset()
- func (x *Asset) String() string
- type AssetConfig
- func (*AssetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AssetConfig) GetAssetId() string
- func (x *AssetConfig) GetEnable() bool
- func (x *AssetConfig) GetProviderId() string
- func (x *AssetConfig) GetSourceIDInt() int32
- func (x *AssetConfig) GetSourceIDString() string
- func (*AssetConfig) ProtoMessage()
- func (x *AssetConfig) ProtoReflect() protoreflect.Message
- func (x *AssetConfig) Reset()
- func (x *AssetConfig) String() string
- type AssetLists
- type AssetsClient
- type AssetsServer
- type Groups
- type ProviderClient
- type ProviderConfig
- func (*ProviderConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderConfig) GetEmail() string
- func (x *ProviderConfig) GetEnable() bool
- func (x *ProviderConfig) GetLoginUrl() string
- func (x *ProviderConfig) GetLoginUseProxy() bool
- func (x *ProviderConfig) GetPassword() string
- func (x *ProviderConfig) GetProviderId() string
- func (x *ProviderConfig) GetProxyAddress() string
- func (x *ProviderConfig) GetSocketUrl() string
- func (x *ProviderConfig) GetToken() string
- func (x *ProviderConfig) GetTokenIsValid() bool
- func (x *ProviderConfig) GetUsername() string
- func (*ProviderConfig) ProtoMessage()
- func (x *ProviderConfig) ProtoReflect() protoreflect.Message
- func (x *ProviderConfig) Reset()
- func (x *ProviderConfig) String() string
- type ProviderList
- func (*ProviderList) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderList) GetId() string
- func (x *ProviderList) GetName() string
- func (*ProviderList) ProtoMessage()
- func (x *ProviderList) ProtoReflect() protoreflect.Message
- func (x *ProviderList) Reset()
- func (x *ProviderList) String() string
- type ProviderServer
- type SourceID
- type UnimplementedAssetsServer
- type UnimplementedProviderServer
- func (UnimplementedProviderServer) GetAssetList(context.Context, *ProviderList) (*AssetLists, error)
- func (UnimplementedProviderServer) GetConfig(context.Context, *ProviderList) (*ProviderConfig, error)
- func (UnimplementedProviderServer) Login(context.Context, *ProviderList) (*emptypb.Empty, error)
- func (UnimplementedProviderServer) UpdateConfig(context.Context, *ProviderConfig) (*emptypb.Empty, error)
- type UnsafeAssetsServer
- type UnsafeProviderServer
Constants ¶
This section is empty.
Variables ¶
var ( Groups_name = map[int32]string{ 0: "UnGroup", 1: "Forex", 2: "Equities", 3: "Stocks", 4: "Commodities", 5: "Crypto", } Groups_value = map[string]int32{ "UnGroup": 0, "Forex": 1, "Equities": 2, "Stocks": 3, "Commodities": 4, "Crypto": 5, } )
Enum value maps for Groups.
var Assets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "quotes.Assets", HandlerType: (*AssetsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _Assets_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/services/fx/quotes/quotes.proto", }
Assets_ServiceDesc is the grpc.ServiceDesc for Assets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_services_fx_quotes_assets_proto protoreflect.FileDescriptor
var File_proto_services_fx_quotes_quotes_proto protoreflect.FileDescriptor
var Provider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "quotes.Provider", HandlerType: (*ProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConfig", Handler: _Provider_GetConfig_Handler, }, { MethodName: "UpdateConfig", Handler: _Provider_UpdateConfig_Handler, }, { MethodName: "Login", Handler: _Provider_Login_Handler, }, { MethodName: "GetAssetList", Handler: _Provider_GetAssetList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/services/fx/quotes/quotes.proto", }
Provider_ServiceDesc is the grpc.ServiceDesc for Provider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAssetsServer ¶
func RegisterAssetsServer(s grpc.ServiceRegistrar, srv AssetsServer)
func RegisterProviderServer ¶
func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
Types ¶
type Asset ¶
type Asset struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id,omitempty"` //@gotags: json:"id,omitempty" Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name,omitempty"` //@gotags: json:"name,omitempty" SourceID *SourceID `protobuf:"bytes,3,opt,name=SourceID,proto3" json:"-" gorm:"-"` //@gotags: json:"-" gorm:"-" Group Groups `protobuf:"varint,4,opt,name=Group,proto3,enum=quotes.Groups" json:"group,omitempty"` //@gotags: json:"group,omitempty" IsOTC bool `protobuf:"varint,5,opt,name=IsOTC,proto3" json:"isOTC,omitempty"` //@gotags: json:"isOTC,omitempty" // contains filtered or unexported fields }
func (*Asset) Descriptor
deprecated
func (*Asset) GetSourceID ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type AssetConfig ¶
type AssetConfig struct { AssetId string `` //@gotags: json:"asset_id,omitempty" gorm:"column:asset_id;primaryKey" mapstructure:"asset_id" /* 126-byte string literal not displayed */ ProviderId string `` //@gotags: gorm:"column:provider_id;primaryKey" mapstructure:"provider_id" /* 137-byte string literal not displayed */ SourceIDInt int32 `` //@gotags: json:"sourceIDInt,omitempty" gorm:"column:source_id_int" mapstructure:"source_id_int" /* 133-byte string literal not displayed */ SourceIDString string `` //@gotags: json:"sourceID,omitempty" gorm:"column:source_id_string" mapstructure:"source_id_string" /* 138-byte string literal not displayed */ Enable bool `protobuf:"varint,5,opt,name=Enable,proto3" json:"enable,omitempty" gorm:"column:enable" mapstructure:"enable"` //@gotags: json:"enable,omitempty" gorm:"column:enable" mapstructure:"enable" // contains filtered or unexported fields }
func (*AssetConfig) Descriptor
deprecated
func (*AssetConfig) Descriptor() ([]byte, []int)
Deprecated: Use AssetConfig.ProtoReflect.Descriptor instead.
func (*AssetConfig) GetAssetId ¶
func (x *AssetConfig) GetAssetId() string
func (*AssetConfig) GetEnable ¶
func (x *AssetConfig) GetEnable() bool
func (*AssetConfig) GetProviderId ¶
func (x *AssetConfig) GetProviderId() string
func (*AssetConfig) GetSourceIDInt ¶
func (x *AssetConfig) GetSourceIDInt() int32
func (*AssetConfig) GetSourceIDString ¶
func (x *AssetConfig) GetSourceIDString() string
func (*AssetConfig) ProtoMessage ¶
func (*AssetConfig) ProtoMessage()
func (*AssetConfig) ProtoReflect ¶
func (x *AssetConfig) ProtoReflect() protoreflect.Message
func (*AssetConfig) Reset ¶
func (x *AssetConfig) Reset()
func (*AssetConfig) String ¶
func (x *AssetConfig) String() string
type AssetLists ¶
type AssetLists struct { Assets []*Asset `protobuf:"bytes,1,rep,name=Assets,proto3" json:"Assets,omitempty"` // contains filtered or unexported fields }
func (*AssetLists) Descriptor
deprecated
func (*AssetLists) Descriptor() ([]byte, []int)
Deprecated: Use AssetLists.ProtoReflect.Descriptor instead.
func (*AssetLists) GetAssets ¶
func (x *AssetLists) GetAssets() []*Asset
func (*AssetLists) ProtoMessage ¶
func (*AssetLists) ProtoMessage()
func (*AssetLists) ProtoReflect ¶
func (x *AssetLists) ProtoReflect() protoreflect.Message
func (*AssetLists) Reset ¶
func (x *AssetLists) Reset()
func (*AssetLists) String ¶
func (x *AssetLists) String() string
type AssetsClient ¶
type AssetsClient interface {
List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AssetLists, error)
}
AssetsClient is the client API for Assets service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAssetsClient ¶
func NewAssetsClient(cc grpc.ClientConnInterface) AssetsClient
type AssetsServer ¶
type AssetsServer interface { List(context.Context, *emptypb.Empty) (*AssetLists, error) // contains filtered or unexported methods }
AssetsServer is the server API for Assets service. All implementations must embed UnimplementedAssetsServer for forward compatibility
type Groups ¶
type Groups int32
func (Groups) Descriptor ¶
func (Groups) Descriptor() protoreflect.EnumDescriptor
func (Groups) EnumDescriptor
deprecated
func (Groups) Number ¶
func (x Groups) Number() protoreflect.EnumNumber
func (Groups) Type ¶
func (Groups) Type() protoreflect.EnumType
type ProviderClient ¶
type ProviderClient interface { GetConfig(ctx context.Context, in *ProviderList, opts ...grpc.CallOption) (*ProviderConfig, error) UpdateConfig(ctx context.Context, in *ProviderConfig, opts ...grpc.CallOption) (*emptypb.Empty, error) Login(ctx context.Context, in *ProviderList, opts ...grpc.CallOption) (*emptypb.Empty, error) GetAssetList(ctx context.Context, in *ProviderList, opts ...grpc.CallOption) (*AssetLists, error) }
ProviderClient is the client API for Provider service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProviderClient ¶
func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient
type ProviderConfig ¶
type ProviderConfig struct { ProviderId string `` //@gotags: gorm:"column:provider_id;primaryKey" mapstructure:"provider_id" /* 137-byte string literal not displayed */ Enable bool `protobuf:"varint,2,opt,name=Enable,proto3" json:"Enable,omitempty" gorm:"column:enable" mapstructure:"enable"` //@gotags: gorm:"column:enable" mapstructure:"enable" SocketUrl string `` //@gotags: gorm:"column:socket_url" mapstructure:"socket_url" validate:"url" /* 137-byte string literal not displayed */ LoginUrl string `` //@gotags: gorm:"column:login_url" mapstructure:"login_url" validate:"url" /* 133-byte string literal not displayed */ Email string `protobuf:"bytes,5,opt,name=Email,proto3" json:"Email,omitempty" gorm:"column:email" mapstructure:"email" validate:"email"` //@gotags: gorm:"column:email" mapstructure:"email" validate:"email" Username string `protobuf:"bytes,6,opt,name=Username,proto3" json:"Username,omitempty" gorm:"column:username" mapstructure:"username"` //@gotags: gorm:"column:username" mapstructure:"username" Password string `protobuf:"bytes,7,opt,name=Password,proto3" json:"Password,omitempty" gorm:"column:password" mapstructure:"password"` //@gotags: gorm:"column:password" mapstructure:"password" Token string `protobuf:"bytes,8,opt,name=Token,proto3" json:"Token,omitempty" gorm:"column:token" mapstructure:"token"` //@gotags: gorm:"column:token" mapstructure:"token" TokenIsValid bool `` //@gotags: gorm:"column:token_is_valid" mapstructure:"token_is_valid" /* 137-byte string literal not displayed */ LoginUseProxy bool `` //@gotags: gorm:"column:login_use_proxy" mapstructure:"login_use_proxy" /* 142-byte string literal not displayed */ ProxyAddress string `` //@gotags: gorm:"column:proxy_address" mapstructure:"proxy_address" validate:"url-empty" /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProviderConfig) Descriptor
deprecated
func (*ProviderConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProviderConfig.ProtoReflect.Descriptor instead.
func (*ProviderConfig) GetEmail ¶
func (x *ProviderConfig) GetEmail() string
func (*ProviderConfig) GetEnable ¶
func (x *ProviderConfig) GetEnable() bool
func (*ProviderConfig) GetLoginUrl ¶
func (x *ProviderConfig) GetLoginUrl() string
func (*ProviderConfig) GetLoginUseProxy ¶
func (x *ProviderConfig) GetLoginUseProxy() bool
func (*ProviderConfig) GetPassword ¶
func (x *ProviderConfig) GetPassword() string
func (*ProviderConfig) GetProviderId ¶
func (x *ProviderConfig) GetProviderId() string
func (*ProviderConfig) GetProxyAddress ¶
func (x *ProviderConfig) GetProxyAddress() string
func (*ProviderConfig) GetSocketUrl ¶
func (x *ProviderConfig) GetSocketUrl() string
func (*ProviderConfig) GetToken ¶
func (x *ProviderConfig) GetToken() string
func (*ProviderConfig) GetTokenIsValid ¶
func (x *ProviderConfig) GetTokenIsValid() bool
func (*ProviderConfig) GetUsername ¶
func (x *ProviderConfig) GetUsername() string
func (*ProviderConfig) ProtoMessage ¶
func (*ProviderConfig) ProtoMessage()
func (*ProviderConfig) ProtoReflect ¶
func (x *ProviderConfig) ProtoReflect() protoreflect.Message
func (*ProviderConfig) Reset ¶
func (x *ProviderConfig) Reset()
func (*ProviderConfig) String ¶
func (x *ProviderConfig) String() string
type ProviderList ¶
type ProviderList struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" gorm:"column:id;primaryKey" mapstructure:"id" validate:"required"` //@gotags: gorm:"column:id;primaryKey" mapstructure:"id" validate:"required" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" gorm:"column:name" mapstructure:"name"` //@gotags: gorm:"column:name" mapstructure:"name" // contains filtered or unexported fields }
func (*ProviderList) Descriptor
deprecated
func (*ProviderList) Descriptor() ([]byte, []int)
Deprecated: Use ProviderList.ProtoReflect.Descriptor instead.
func (*ProviderList) GetId ¶
func (x *ProviderList) GetId() string
func (*ProviderList) GetName ¶
func (x *ProviderList) GetName() string
func (*ProviderList) ProtoMessage ¶
func (*ProviderList) ProtoMessage()
func (*ProviderList) ProtoReflect ¶
func (x *ProviderList) ProtoReflect() protoreflect.Message
func (*ProviderList) Reset ¶
func (x *ProviderList) Reset()
func (*ProviderList) String ¶
func (x *ProviderList) String() string
type ProviderServer ¶
type ProviderServer interface { GetConfig(context.Context, *ProviderList) (*ProviderConfig, error) UpdateConfig(context.Context, *ProviderConfig) (*emptypb.Empty, error) Login(context.Context, *ProviderList) (*emptypb.Empty, error) GetAssetList(context.Context, *ProviderList) (*AssetLists, error) // contains filtered or unexported methods }
ProviderServer is the server API for Provider service. All implementations must embed UnimplementedProviderServer for forward compatibility
type SourceID ¶
type SourceID struct { IDInt int32 `protobuf:"varint,1,opt,name=IDInt,proto3" json:"IdInt,omitempty"` //@gotags: json:"IdInt,omitempty" IDString string `protobuf:"bytes,2,opt,name=IDString,proto3" json:"IdString,omitempty"` //@gotags: json:"IdString,omitempty" // contains filtered or unexported fields }
func (*SourceID) Descriptor
deprecated
func (*SourceID) GetIDString ¶
func (*SourceID) ProtoMessage ¶
func (*SourceID) ProtoMessage()
func (*SourceID) ProtoReflect ¶
func (x *SourceID) ProtoReflect() protoreflect.Message
type UnimplementedAssetsServer ¶
type UnimplementedAssetsServer struct { }
UnimplementedAssetsServer must be embedded to have forward compatible implementations.
func (UnimplementedAssetsServer) List ¶
func (UnimplementedAssetsServer) List(context.Context, *emptypb.Empty) (*AssetLists, error)
type UnimplementedProviderServer ¶
type UnimplementedProviderServer struct { }
UnimplementedProviderServer must be embedded to have forward compatible implementations.
func (UnimplementedProviderServer) GetAssetList ¶
func (UnimplementedProviderServer) GetAssetList(context.Context, *ProviderList) (*AssetLists, error)
func (UnimplementedProviderServer) GetConfig ¶
func (UnimplementedProviderServer) GetConfig(context.Context, *ProviderList) (*ProviderConfig, error)
func (UnimplementedProviderServer) Login ¶
func (UnimplementedProviderServer) Login(context.Context, *ProviderList) (*emptypb.Empty, error)
func (UnimplementedProviderServer) UpdateConfig ¶
func (UnimplementedProviderServer) UpdateConfig(context.Context, *ProviderConfig) (*emptypb.Empty, error)
type UnsafeAssetsServer ¶
type UnsafeAssetsServer interface {
// contains filtered or unexported methods
}
UnsafeAssetsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssetsServer will result in compilation errors.
type UnsafeProviderServer ¶
type UnsafeProviderServer interface {
// contains filtered or unexported methods
}
UnsafeProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderServer will result in compilation errors.