Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAssetServiceServer(s grpc.ServiceRegistrar, srv AssetServiceServer)
- func RegisterFavoritesServiceServer(s grpc.ServiceRegistrar, srv FavoritesServiceServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type Asset
- type AssetRequest
- type AssetResponse
- func (*AssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssetResponse) GetAsset() *Asset
- func (x *AssetResponse) GetError() string
- func (x *AssetResponse) GetStatus() Status
- func (*AssetResponse) ProtoMessage()
- func (x *AssetResponse) ProtoReflect() protoreflect.Message
- func (x *AssetResponse) Reset()
- func (x *AssetResponse) String() string
- type AssetServiceClient
- type AssetServiceServer
- type AssetType
- type Favorites
- type FavoritesRequest
- type FavoritesResponse
- func (*FavoritesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoritesResponse) GetError() string
- func (x *FavoritesResponse) GetFavorites() *Favorites
- func (x *FavoritesResponse) GetStatus() Status
- func (*FavoritesResponse) ProtoMessage()
- func (x *FavoritesResponse) ProtoReflect() protoreflect.Message
- func (x *FavoritesResponse) Reset()
- func (x *FavoritesResponse) String() string
- type FavoritesServiceClient
- type FavoritesServiceServer
- type Status
- type UnimplementedAssetServiceServer
- type UnimplementedFavoritesServiceServer
- func (UnimplementedFavoritesServiceServer) Get(context.Context, *FavoritesRequest) (*FavoritesResponse, error)
- func (UnimplementedFavoritesServiceServer) GetForUser(context.Context, *UserFavoritesRequest) (*UserFavoritesResponse, error)
- func (UnimplementedFavoritesServiceServer) Set(context.Context, *FavoritesRequest) (*FavoritesResponse, error)
- type UnimplementedUserServiceServer
- type UnsafeAssetServiceServer
- type UnsafeFavoritesServiceServer
- type UnsafeUserServiceServer
- type User
- type UserFavoritesRequest
- func (*UserFavoritesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserFavoritesRequest) GetUser() *User
- func (*UserFavoritesRequest) ProtoMessage()
- func (x *UserFavoritesRequest) ProtoReflect() protoreflect.Message
- func (x *UserFavoritesRequest) Reset()
- func (x *UserFavoritesRequest) String() string
- type UserFavoritesResponse
- func (*UserFavoritesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserFavoritesResponse) GetCount() int32
- func (x *UserFavoritesResponse) GetError() string
- func (x *UserFavoritesResponse) GetFavorites() []*Favorites
- func (x *UserFavoritesResponse) GetStatus() Status
- func (*UserFavoritesResponse) ProtoMessage()
- func (x *UserFavoritesResponse) ProtoReflect() protoreflect.Message
- func (x *UserFavoritesResponse) Reset()
- func (x *UserFavoritesResponse) String() string
- type UserRequest
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserResponse) GetError() string
- func (x *UserResponse) GetStatus() Status
- func (x *UserResponse) GetUser() *User
- func (*UserResponse) ProtoMessage()
- func (x *UserResponse) ProtoReflect() protoreflect.Message
- func (x *UserResponse) Reset()
- func (x *UserResponse) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
const ( FavoritesService_Get_FullMethodName = "/proto.FavoritesService/Get" FavoritesService_GetForUser_FullMethodName = "/proto.FavoritesService/GetForUser" FavoritesService_Set_FullMethodName = "/proto.FavoritesService/Set" )
const (
AssetService_Get_FullMethodName = "/proto.AssetService/Get"
)
const (
UserService_Get_FullMethodName = "/proto.UserService/Get"
)
Variables ¶
var ( Status_name = map[int32]string{ 0: "UNKNOWN", 1: "OK", 2: "FAIL", 3: "SUSPENDED", } Status_value = map[string]int32{ "UNKNOWN": 0, "OK": 1, "FAIL": 2, "SUSPENDED": 3, } )
Enum value maps for Status.
var AssetService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.AssetService", HandlerType: (*AssetServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _AssetService_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/asset.proto", }
AssetService_ServiceDesc is the grpc.ServiceDesc for AssetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var FavoritesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.FavoritesService", HandlerType: (*FavoritesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _FavoritesService_Get_Handler, }, { MethodName: "GetForUser", Handler: _FavoritesService_GetForUser_Handler, }, { MethodName: "Set", Handler: _FavoritesService_Set_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/favorites.proto", }
FavoritesService_ServiceDesc is the grpc.ServiceDesc for FavoritesService 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_asset_proto protoreflect.FileDescriptor
var File_proto_favorites_proto protoreflect.FileDescriptor
var File_proto_status_proto protoreflect.FileDescriptor
var File_proto_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _UserService_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAssetServiceServer ¶
func RegisterAssetServiceServer(s grpc.ServiceRegistrar, srv AssetServiceServer)
func RegisterFavoritesServiceServer ¶
func RegisterFavoritesServiceServer(s grpc.ServiceRegistrar, srv FavoritesServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type Asset ¶
type Asset struct { Isin string `protobuf:"bytes,1,opt,name=isin,proto3" json:"isin,omitempty"` // International Securities Identification Numbers AssetType *AssetType `protobuf:"bytes,2,opt,name=assetType,proto3" json:"assetType,omitempty"` // тип инструмента // contains filtered or unexported fields }
func (*Asset) Descriptor
deprecated
func (*Asset) GetAssetType ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type AssetRequest ¶
type AssetRequest struct { Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // инструмент // contains filtered or unexported fields }
func (*AssetRequest) Descriptor
deprecated
func (*AssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssetRequest.ProtoReflect.Descriptor instead.
func (*AssetRequest) GetAsset ¶
func (x *AssetRequest) GetAsset() *Asset
func (*AssetRequest) ProtoMessage ¶
func (*AssetRequest) ProtoMessage()
func (*AssetRequest) ProtoReflect ¶
func (x *AssetRequest) ProtoReflect() protoreflect.Message
func (*AssetRequest) Reset ¶
func (x *AssetRequest) Reset()
func (*AssetRequest) String ¶
func (x *AssetRequest) String() string
type AssetResponse ¶
type AssetResponse struct { Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=proto.Status" json:"status,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*AssetResponse) Descriptor
deprecated
func (*AssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssetResponse.ProtoReflect.Descriptor instead.
func (*AssetResponse) GetAsset ¶
func (x *AssetResponse) GetAsset() *Asset
func (*AssetResponse) GetError ¶
func (x *AssetResponse) GetError() string
func (*AssetResponse) GetStatus ¶
func (x *AssetResponse) GetStatus() Status
func (*AssetResponse) ProtoMessage ¶
func (*AssetResponse) ProtoMessage()
func (*AssetResponse) ProtoReflect ¶
func (x *AssetResponse) ProtoReflect() protoreflect.Message
func (*AssetResponse) Reset ¶
func (x *AssetResponse) Reset()
func (*AssetResponse) String ¶
func (x *AssetResponse) String() string
type AssetServiceClient ¶
type AssetServiceClient interface {
Get(ctx context.Context, in *AssetRequest, opts ...grpc.CallOption) (*AssetResponse, error)
}
AssetServiceClient is the client API for AssetService 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 NewAssetServiceClient ¶
func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient
type AssetServiceServer ¶
type AssetServiceServer interface { Get(context.Context, *AssetRequest) (*AssetResponse, error) // contains filtered or unexported methods }
AssetServiceServer is the server API for AssetService service. All implementations must embed UnimplementedAssetServiceServer for forward compatibility
type AssetType ¶
type AssetType struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // тип инструмента // contains filtered or unexported fields }
func (*AssetType) Descriptor
deprecated
func (*AssetType) ProtoMessage ¶
func (*AssetType) ProtoMessage()
func (*AssetType) ProtoReflect ¶
func (x *AssetType) ProtoReflect() protoreflect.Message
type Favorites ¶
type Favorites struct { Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // инструмент User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // пользователь // contains filtered or unexported fields }
func (*Favorites) Descriptor
deprecated
func (*Favorites) ProtoMessage ¶
func (*Favorites) ProtoMessage()
func (*Favorites) ProtoReflect ¶
func (x *Favorites) ProtoReflect() protoreflect.Message
type FavoritesRequest ¶
type FavoritesRequest struct { Favorites *Favorites `protobuf:"bytes,1,opt,name=favorites,proto3" json:"favorites,omitempty"` // инструмент // contains filtered or unexported fields }
func (*FavoritesRequest) Descriptor
deprecated
func (*FavoritesRequest) Descriptor() ([]byte, []int)
Deprecated: Use FavoritesRequest.ProtoReflect.Descriptor instead.
func (*FavoritesRequest) GetFavorites ¶
func (x *FavoritesRequest) GetFavorites() *Favorites
func (*FavoritesRequest) ProtoMessage ¶
func (*FavoritesRequest) ProtoMessage()
func (*FavoritesRequest) ProtoReflect ¶
func (x *FavoritesRequest) ProtoReflect() protoreflect.Message
func (*FavoritesRequest) Reset ¶
func (x *FavoritesRequest) Reset()
func (*FavoritesRequest) String ¶
func (x *FavoritesRequest) String() string
type FavoritesResponse ¶
type FavoritesResponse struct { Favorites *Favorites `protobuf:"bytes,1,opt,name=favorites,proto3" json:"favorites,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=proto.Status" json:"status,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*FavoritesResponse) Descriptor
deprecated
func (*FavoritesResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoritesResponse.ProtoReflect.Descriptor instead.
func (*FavoritesResponse) GetError ¶
func (x *FavoritesResponse) GetError() string
func (*FavoritesResponse) GetFavorites ¶
func (x *FavoritesResponse) GetFavorites() *Favorites
func (*FavoritesResponse) GetStatus ¶
func (x *FavoritesResponse) GetStatus() Status
func (*FavoritesResponse) ProtoMessage ¶
func (*FavoritesResponse) ProtoMessage()
func (*FavoritesResponse) ProtoReflect ¶
func (x *FavoritesResponse) ProtoReflect() protoreflect.Message
func (*FavoritesResponse) Reset ¶
func (x *FavoritesResponse) Reset()
func (*FavoritesResponse) String ¶
func (x *FavoritesResponse) String() string
type FavoritesServiceClient ¶
type FavoritesServiceClient interface { Get(ctx context.Context, in *FavoritesRequest, opts ...grpc.CallOption) (*FavoritesResponse, error) GetForUser(ctx context.Context, in *UserFavoritesRequest, opts ...grpc.CallOption) (*UserFavoritesResponse, error) Set(ctx context.Context, in *FavoritesRequest, opts ...grpc.CallOption) (*FavoritesResponse, error) }
FavoritesServiceClient is the client API for FavoritesService 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 NewFavoritesServiceClient ¶
func NewFavoritesServiceClient(cc grpc.ClientConnInterface) FavoritesServiceClient
type FavoritesServiceServer ¶
type FavoritesServiceServer interface { Get(context.Context, *FavoritesRequest) (*FavoritesResponse, error) GetForUser(context.Context, *UserFavoritesRequest) (*UserFavoritesResponse, error) Set(context.Context, *FavoritesRequest) (*FavoritesResponse, error) // contains filtered or unexported methods }
FavoritesServiceServer is the server API for FavoritesService service. All implementations must embed UnimplementedFavoritesServiceServer for forward compatibility
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedAssetServiceServer ¶
type UnimplementedAssetServiceServer struct { }
UnimplementedAssetServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAssetServiceServer) Get ¶
func (UnimplementedAssetServiceServer) Get(context.Context, *AssetRequest) (*AssetResponse, error)
type UnimplementedFavoritesServiceServer ¶
type UnimplementedFavoritesServiceServer struct { }
UnimplementedFavoritesServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFavoritesServiceServer) Get ¶
func (UnimplementedFavoritesServiceServer) Get(context.Context, *FavoritesRequest) (*FavoritesResponse, error)
func (UnimplementedFavoritesServiceServer) GetForUser ¶
func (UnimplementedFavoritesServiceServer) GetForUser(context.Context, *UserFavoritesRequest) (*UserFavoritesResponse, error)
func (UnimplementedFavoritesServiceServer) Set ¶
func (UnimplementedFavoritesServiceServer) Set(context.Context, *FavoritesRequest) (*FavoritesResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) Get ¶
func (UnimplementedUserServiceServer) Get(context.Context, *UserRequest) (*UserResponse, error)
type UnsafeAssetServiceServer ¶
type UnsafeAssetServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAssetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssetServiceServer will result in compilation errors.
type UnsafeFavoritesServiceServer ¶
type UnsafeFavoritesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFavoritesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FavoritesServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type User ¶
type User struct { PersonalKey string `protobuf:"bytes,1,opt,name=personal_key,json=personalKey,proto3" json:"personal_key,omitempty"` // User personal key Upk string `protobuf:"bytes,2,opt,name=upk,proto3" json:"upk,omitempty"` // Crypted User personal key // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetPersonalKey ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserFavoritesRequest ¶
type UserFavoritesRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // пользователь // contains filtered or unexported fields }
func (*UserFavoritesRequest) Descriptor
deprecated
func (*UserFavoritesRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserFavoritesRequest.ProtoReflect.Descriptor instead.
func (*UserFavoritesRequest) GetUser ¶
func (x *UserFavoritesRequest) GetUser() *User
func (*UserFavoritesRequest) ProtoMessage ¶
func (*UserFavoritesRequest) ProtoMessage()
func (*UserFavoritesRequest) ProtoReflect ¶
func (x *UserFavoritesRequest) ProtoReflect() protoreflect.Message
func (*UserFavoritesRequest) Reset ¶
func (x *UserFavoritesRequest) Reset()
func (*UserFavoritesRequest) String ¶
func (x *UserFavoritesRequest) String() string
type UserFavoritesResponse ¶
type UserFavoritesResponse struct { Favorites []*Favorites `protobuf:"bytes,1,rep,name=favorites,proto3" json:"favorites,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=proto.Status" json:"status,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*UserFavoritesResponse) Descriptor
deprecated
func (*UserFavoritesResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserFavoritesResponse.ProtoReflect.Descriptor instead.
func (*UserFavoritesResponse) GetCount ¶
func (x *UserFavoritesResponse) GetCount() int32
func (*UserFavoritesResponse) GetError ¶
func (x *UserFavoritesResponse) GetError() string
func (*UserFavoritesResponse) GetFavorites ¶
func (x *UserFavoritesResponse) GetFavorites() []*Favorites
func (*UserFavoritesResponse) GetStatus ¶
func (x *UserFavoritesResponse) GetStatus() Status
func (*UserFavoritesResponse) ProtoMessage ¶
func (*UserFavoritesResponse) ProtoMessage()
func (*UserFavoritesResponse) ProtoReflect ¶
func (x *UserFavoritesResponse) ProtoReflect() protoreflect.Message
func (*UserFavoritesResponse) Reset ¶
func (x *UserFavoritesResponse) Reset()
func (*UserFavoritesResponse) String ¶
func (x *UserFavoritesResponse) String() string
type UserRequest ¶
type UserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserRequest) Descriptor
deprecated
func (*UserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
func (*UserRequest) GetUser ¶
func (x *UserRequest) GetUser() *User
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) ProtoReflect ¶
func (x *UserRequest) ProtoReflect() protoreflect.Message
func (*UserRequest) Reset ¶
func (x *UserRequest) Reset()
func (*UserRequest) String ¶
func (x *UserRequest) String() string
type UserResponse ¶
type UserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=proto.Status" json:"status,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*UserResponse) Descriptor
deprecated
func (*UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
func (*UserResponse) GetError ¶
func (x *UserResponse) GetError() string
func (*UserResponse) GetStatus ¶
func (x *UserResponse) GetStatus() Status
func (*UserResponse) GetUser ¶
func (x *UserResponse) GetUser() *User
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
type UserServiceClient ¶
type UserServiceClient interface {
Get(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
}
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { Get(context.Context, *UserRequest) (*UserResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility