stonkv1

package
v0.0.0-...-21f6f0f Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_stonk_v1_stonk_service_proto protoreflect.FileDescriptor
View Source
var StonkService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stonk.v1.StonkService",
	HandlerType: (*StonkServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetStonk",
			Handler:    _StonkService_GetStonk_Handler,
		},
		{
			MethodName: "Gainers",
			Handler:    _StonkService_Gainers_Handler,
		},
		{
			MethodName: "Loosers",
			Handler:    _StonkService_Loosers_Handler,
		},
		{
			MethodName: "Compare",
			Handler:    _StonkService_Compare_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stonk/v1/stonk_service.proto",
}

StonkService_ServiceDesc is the grpc.ServiceDesc for StonkService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStonkServiceServer

func RegisterStonkServiceServer(s grpc.ServiceRegistrar, srv StonkServiceServer)

Types

type CompareRequest

type CompareRequest struct {
	// contains filtered or unexported fields
}

func (*CompareRequest) Descriptor deprecated

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

Deprecated: Use CompareRequest.ProtoReflect.Descriptor instead.

func (*CompareRequest) ProtoMessage

func (*CompareRequest) ProtoMessage()

func (*CompareRequest) ProtoReflect

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

func (*CompareRequest) Reset

func (x *CompareRequest) Reset()

func (*CompareRequest) String

func (x *CompareRequest) String() string

type CompareResponse

type CompareResponse struct {
	Strat     string `protobuf:"bytes,1,opt,name=strat,proto3" json:"strat,omitempty"`
	NoStrat   string `protobuf:"bytes,2,opt,name=no_strat,json=noStrat,proto3" json:"no_strat,omitempty"`
	GraphLink string `protobuf:"bytes,3,opt,name=graph_link,json=graphLink,proto3" json:"graph_link,omitempty"`
	// contains filtered or unexported fields
}

func (*CompareResponse) Descriptor deprecated

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

Deprecated: Use CompareResponse.ProtoReflect.Descriptor instead.

func (x *CompareResponse) GetGraphLink() string

func (*CompareResponse) GetNoStrat

func (x *CompareResponse) GetNoStrat() string

func (*CompareResponse) GetStrat

func (x *CompareResponse) GetStrat() string

func (*CompareResponse) ProtoMessage

func (*CompareResponse) ProtoMessage()

func (*CompareResponse) ProtoReflect

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

func (*CompareResponse) Reset

func (x *CompareResponse) Reset()

func (*CompareResponse) String

func (x *CompareResponse) String() string

type GainersRequest

type GainersRequest struct {
	// contains filtered or unexported fields
}

func (*GainersRequest) Descriptor deprecated

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

Deprecated: Use GainersRequest.ProtoReflect.Descriptor instead.

func (*GainersRequest) ProtoMessage

func (*GainersRequest) ProtoMessage()

func (*GainersRequest) ProtoReflect

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

func (*GainersRequest) Reset

func (x *GainersRequest) Reset()

func (*GainersRequest) String

func (x *GainersRequest) String() string

type GainersResponse

type GainersResponse struct {
	Symbol        string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Price         string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	Change        string `protobuf:"bytes,4,opt,name=change,proto3" json:"change,omitempty"`
	PercentChange string `protobuf:"bytes,5,opt,name=percent_change,json=percentChange,proto3" json:"percent_change,omitempty"`
	Volume        string `protobuf:"bytes,6,opt,name=volume,proto3" json:"volume,omitempty"`
	AvgVolume     string `protobuf:"bytes,7,opt,name=avg_volume,json=avgVolume,proto3" json:"avg_volume,omitempty"`
	MarketCap     string `protobuf:"bytes,8,opt,name=market_cap,json=marketCap,proto3" json:"market_cap,omitempty"`
	PeRatio       string `protobuf:"bytes,9,opt,name=pe_ratio,json=peRatio,proto3" json:"pe_ratio,omitempty"`
	Week52High    string `protobuf:"bytes,10,opt,name=week52_high,json=week52High,proto3" json:"week52_high,omitempty"`
	Unused        string `protobuf:"bytes,11,opt,name=unused,proto3" json:"unused,omitempty"`
	// contains filtered or unexported fields
}

func (*GainersResponse) Descriptor deprecated

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

Deprecated: Use GainersResponse.ProtoReflect.Descriptor instead.

func (*GainersResponse) GetAvgVolume

func (x *GainersResponse) GetAvgVolume() string

func (*GainersResponse) GetChange

func (x *GainersResponse) GetChange() string

func (*GainersResponse) GetMarketCap

func (x *GainersResponse) GetMarketCap() string

func (*GainersResponse) GetName

func (x *GainersResponse) GetName() string

func (*GainersResponse) GetPeRatio

func (x *GainersResponse) GetPeRatio() string

func (*GainersResponse) GetPercentChange

func (x *GainersResponse) GetPercentChange() string

func (*GainersResponse) GetPrice

func (x *GainersResponse) GetPrice() string

func (*GainersResponse) GetSymbol

func (x *GainersResponse) GetSymbol() string

func (*GainersResponse) GetUnused

func (x *GainersResponse) GetUnused() string

func (*GainersResponse) GetVolume

func (x *GainersResponse) GetVolume() string

func (*GainersResponse) GetWeek52High

func (x *GainersResponse) GetWeek52High() string

func (*GainersResponse) ProtoMessage

func (*GainersResponse) ProtoMessage()

func (*GainersResponse) ProtoReflect

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

func (*GainersResponse) Reset

func (x *GainersResponse) Reset()

func (*GainersResponse) String

func (x *GainersResponse) String() string

type GetStonkRequest

type GetStonkRequest struct {
	Stonk string `protobuf:"bytes,1,opt,name=stonk,proto3" json:"stonk,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStonkRequest) Descriptor deprecated

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

Deprecated: Use GetStonkRequest.ProtoReflect.Descriptor instead.

func (*GetStonkRequest) GetStonk

func (x *GetStonkRequest) GetStonk() string

func (*GetStonkRequest) ProtoMessage

func (*GetStonkRequest) ProtoMessage()

func (*GetStonkRequest) ProtoReflect

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

func (*GetStonkRequest) Reset

func (x *GetStonkRequest) Reset()

func (*GetStonkRequest) String

func (x *GetStonkRequest) String() string

type GetStonkResponse

type GetStonkResponse struct {
	Stonk    string `protobuf:"bytes,1,opt,name=stonk,proto3" json:"stonk,omitempty"`
	Buyornot string `protobuf:"bytes,2,opt,name=buyornot,proto3" json:"buyornot,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStonkResponse) Descriptor deprecated

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

Deprecated: Use GetStonkResponse.ProtoReflect.Descriptor instead.

func (*GetStonkResponse) GetBuyornot

func (x *GetStonkResponse) GetBuyornot() string

func (*GetStonkResponse) GetStonk

func (x *GetStonkResponse) GetStonk() string

func (*GetStonkResponse) ProtoMessage

func (*GetStonkResponse) ProtoMessage()

func (*GetStonkResponse) ProtoReflect

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

func (*GetStonkResponse) Reset

func (x *GetStonkResponse) Reset()

func (*GetStonkResponse) String

func (x *GetStonkResponse) String() string

type LoosersRequest

type LoosersRequest struct {
	// contains filtered or unexported fields
}

func (*LoosersRequest) Descriptor deprecated

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

Deprecated: Use LoosersRequest.ProtoReflect.Descriptor instead.

func (*LoosersRequest) ProtoMessage

func (*LoosersRequest) ProtoMessage()

func (*LoosersRequest) ProtoReflect

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

func (*LoosersRequest) Reset

func (x *LoosersRequest) Reset()

func (*LoosersRequest) String

func (x *LoosersRequest) String() string

type LoosersResponse

type LoosersResponse struct {
	Symbol        string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Price         string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	Change        string `protobuf:"bytes,4,opt,name=change,proto3" json:"change,omitempty"`
	PercentChange string `protobuf:"bytes,5,opt,name=percent_change,json=percentChange,proto3" json:"percent_change,omitempty"`
	Volume        string `protobuf:"bytes,6,opt,name=volume,proto3" json:"volume,omitempty"`
	AvgVolume     string `protobuf:"bytes,7,opt,name=avg_volume,json=avgVolume,proto3" json:"avg_volume,omitempty"`
	MarketCap     string `protobuf:"bytes,8,opt,name=market_cap,json=marketCap,proto3" json:"market_cap,omitempty"`
	PeRatio       string `protobuf:"bytes,9,opt,name=pe_ratio,json=peRatio,proto3" json:"pe_ratio,omitempty"`
	Week52High    string `protobuf:"bytes,10,opt,name=week52_high,json=week52High,proto3" json:"week52_high,omitempty"`
	Unused        string `protobuf:"bytes,11,opt,name=unused,proto3" json:"unused,omitempty"`
	// contains filtered or unexported fields
}

func (*LoosersResponse) Descriptor deprecated

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

Deprecated: Use LoosersResponse.ProtoReflect.Descriptor instead.

func (*LoosersResponse) GetAvgVolume

func (x *LoosersResponse) GetAvgVolume() string

func (*LoosersResponse) GetChange

func (x *LoosersResponse) GetChange() string

func (*LoosersResponse) GetMarketCap

func (x *LoosersResponse) GetMarketCap() string

func (*LoosersResponse) GetName

func (x *LoosersResponse) GetName() string

func (*LoosersResponse) GetPeRatio

func (x *LoosersResponse) GetPeRatio() string

func (*LoosersResponse) GetPercentChange

func (x *LoosersResponse) GetPercentChange() string

func (*LoosersResponse) GetPrice

func (x *LoosersResponse) GetPrice() string

func (*LoosersResponse) GetSymbol

func (x *LoosersResponse) GetSymbol() string

func (*LoosersResponse) GetUnused

func (x *LoosersResponse) GetUnused() string

func (*LoosersResponse) GetVolume

func (x *LoosersResponse) GetVolume() string

func (*LoosersResponse) GetWeek52High

func (x *LoosersResponse) GetWeek52High() string

func (*LoosersResponse) ProtoMessage

func (*LoosersResponse) ProtoMessage()

func (*LoosersResponse) ProtoReflect

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

func (*LoosersResponse) Reset

func (x *LoosersResponse) Reset()

func (*LoosersResponse) String

func (x *LoosersResponse) String() string

type StonkServiceClient

type StonkServiceClient interface {
	GetStonk(ctx context.Context, in *GetStonkRequest, opts ...grpc.CallOption) (*GetStonkResponse, error)
	Gainers(ctx context.Context, in *GainersRequest, opts ...grpc.CallOption) (*GainersResponse, error)
	Loosers(ctx context.Context, in *LoosersRequest, opts ...grpc.CallOption) (*LoosersResponse, error)
	Compare(ctx context.Context, in *CompareRequest, opts ...grpc.CallOption) (*CompareResponse, error)
}

StonkServiceClient is the client API for StonkService 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 StonkServiceServer

StonkServiceServer is the server API for StonkService service. All implementations should embed UnimplementedStonkServiceServer for forward compatibility

type UnimplementedStonkServiceServer

type UnimplementedStonkServiceServer struct {
}

UnimplementedStonkServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedStonkServiceServer) Compare

func (UnimplementedStonkServiceServer) Gainers

func (UnimplementedStonkServiceServer) GetStonk

func (UnimplementedStonkServiceServer) Loosers

type UnsafeStonkServiceServer

type UnsafeStonkServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeStonkServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StonkServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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