proto

package
v0.0.0-...-aef14cd Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FavoritesService_Get_FullMethodName        = "/proto.FavoritesService/Get"
	FavoritesService_GetForUser_FullMethodName = "/proto.FavoritesService/GetForUser"
	FavoritesService_Set_FullMethodName        = "/proto.FavoritesService/Set"
)
View Source
const (
	AssetService_Get_FullMethodName = "/proto.AssetService/Get"
)
View Source
const (
	UserService_Get_FullMethodName = "/proto.UserService/Get"
)

Variables

View Source
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.

View Source
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)

View Source
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)

View Source
var File_proto_asset_proto protoreflect.FileDescriptor
View Source
var File_proto_favorites_proto protoreflect.FileDescriptor
View Source
var File_proto_status_proto protoreflect.FileDescriptor
View Source
var File_proto_user_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetAssetType

func (x *Asset) GetAssetType() *AssetType

func (*Asset) GetIsin

func (x *Asset) GetIsin() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use AssetType.ProtoReflect.Descriptor instead.

func (*AssetType) GetName

func (x *AssetType) GetName() string

func (*AssetType) ProtoMessage

func (*AssetType) ProtoMessage()

func (*AssetType) ProtoReflect

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

func (*AssetType) Reset

func (x *AssetType) Reset()

func (*AssetType) String

func (x *AssetType) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Favorites.ProtoReflect.Descriptor instead.

func (*Favorites) GetAsset

func (x *Favorites) GetAsset() *Asset

func (*Favorites) GetUser

func (x *Favorites) GetUser() *User

func (*Favorites) ProtoMessage

func (*Favorites) ProtoMessage()

func (*Favorites) ProtoReflect

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

func (*Favorites) Reset

func (x *Favorites) Reset()

func (*Favorites) String

func (x *Favorites) String() string

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.

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
const (
	Status_UNKNOWN   Status = 0
	Status_OK        Status = 1
	Status_FAIL      Status = 2
	Status_SUSPENDED Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

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

type UnimplementedFavoritesServiceServer

type UnimplementedFavoritesServiceServer struct {
}

UnimplementedFavoritesServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFavoritesServiceServer) Get

func (UnimplementedFavoritesServiceServer) GetForUser

func (UnimplementedFavoritesServiceServer) Set

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) Get

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetPersonalKey

func (x *User) GetPersonalKey() string

func (*User) GetUpk

func (x *User) GetUpk() 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

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.

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

Jump to

Keyboard shortcuts

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