sav_scrapy

package
v0.0.0-...-db648dc Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReturnCode_name = map[int32]string{
		0: "SUCCESS",
		1: "ERROR",
	}
	ReturnCode_value = map[string]int32{
		"SUCCESS": 0,
		"ERROR":   1,
	}
)

Enum value maps for ReturnCode.

View Source
var File_scrapy_proto protoreflect.FileDescriptor
View Source
var GiantWhaleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "savourrpc.keylocker.GiantWhaleService",
	HandlerType: (*GiantWhaleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getSupportChain",
			Handler:    _GiantWhaleService_GetSupportChain_Handler,
		},
		{
			MethodName: "setGiantWhale",
			Handler:    _GiantWhaleService_SetGiantWhale_Handler,
		},
		{
			MethodName: "getGiantWhale",
			Handler:    _GiantWhaleService_GetGiantWhale_Handler,
		},
		{
			MethodName: "removeGiantWhale",
			Handler:    _GiantWhaleService_RemoveGiantWhale_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "scrapy.proto",
}

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

Functions

func RegisterGiantWhaleServiceServer

func RegisterGiantWhaleServiceServer(s grpc.ServiceRegistrar, srv GiantWhaleServiceServer)

Types

type Chain

type Chain struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	// contains filtered or unexported fields
}

func (*Chain) Descriptor deprecated

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

Deprecated: Use Chain.ProtoReflect.Descriptor instead.

func (*Chain) GetChain

func (x *Chain) GetChain() string

func (*Chain) GetId

func (x *Chain) GetId() string

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) ProtoReflect

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

func (*Chain) Reset

func (x *Chain) Reset()

func (*Chain) String

func (x *Chain) String() string

type GetGiantWhaleRep

type GetGiantWhaleRep struct {
	Code   ReturnCode    `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"`
	Msg    string        `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	GwList []*GiantWhale `protobuf:"bytes,3,rep,name=gw_list,json=gwList,proto3" json:"gw_list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGiantWhaleRep) Descriptor deprecated

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

Deprecated: Use GetGiantWhaleRep.ProtoReflect.Descriptor instead.

func (*GetGiantWhaleRep) GetCode

func (x *GetGiantWhaleRep) GetCode() ReturnCode

func (*GetGiantWhaleRep) GetGwList

func (x *GetGiantWhaleRep) GetGwList() []*GiantWhale

func (*GetGiantWhaleRep) GetMsg

func (x *GetGiantWhaleRep) GetMsg() string

func (*GetGiantWhaleRep) ProtoMessage

func (*GetGiantWhaleRep) ProtoMessage()

func (*GetGiantWhaleRep) ProtoReflect

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

func (*GetGiantWhaleRep) Reset

func (x *GetGiantWhaleRep) Reset()

func (*GetGiantWhaleRep) String

func (x *GetGiantWhaleRep) String() string

type GetGiantWhaleReq

type GetGiantWhaleReq struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Page          uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	PageSize      uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGiantWhaleReq) Descriptor deprecated

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

Deprecated: Use GetGiantWhaleReq.ProtoReflect.Descriptor instead.

func (*GetGiantWhaleReq) GetChain

func (x *GetGiantWhaleReq) GetChain() string

func (*GetGiantWhaleReq) GetConsumerToken

func (x *GetGiantWhaleReq) GetConsumerToken() string

func (*GetGiantWhaleReq) GetPage

func (x *GetGiantWhaleReq) GetPage() uint32

func (*GetGiantWhaleReq) GetPageSize

func (x *GetGiantWhaleReq) GetPageSize() uint32

func (*GetGiantWhaleReq) ProtoMessage

func (*GetGiantWhaleReq) ProtoMessage()

func (*GetGiantWhaleReq) ProtoReflect

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

func (*GetGiantWhaleReq) Reset

func (x *GetGiantWhaleReq) Reset()

func (*GetGiantWhaleReq) String

func (x *GetGiantWhaleReq) String() string

type GiantWhale

type GiantWhale struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Holder  string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"`
	// contains filtered or unexported fields
}

func (*GiantWhale) Descriptor deprecated

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

Deprecated: Use GiantWhale.ProtoReflect.Descriptor instead.

func (*GiantWhale) GetAddress

func (x *GiantWhale) GetAddress() string

func (*GiantWhale) GetHolder

func (x *GiantWhale) GetHolder() string

func (*GiantWhale) GetId

func (x *GiantWhale) GetId() string

func (*GiantWhale) ProtoMessage

func (*GiantWhale) ProtoMessage()

func (*GiantWhale) ProtoReflect

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

func (*GiantWhale) Reset

func (x *GiantWhale) Reset()

func (*GiantWhale) String

func (x *GiantWhale) String() string

type GiantWhaleServiceClient

type GiantWhaleServiceClient interface {
	GetSupportChain(ctx context.Context, in *SupportChainReq, opts ...grpc.CallOption) (*SupportChainRep, error)
	SetGiantWhale(ctx context.Context, in *SetGiantWhaleReq, opts ...grpc.CallOption) (*SetGiantWhaleRep, error)
	GetGiantWhale(ctx context.Context, in *GetGiantWhaleReq, opts ...grpc.CallOption) (*GetGiantWhaleRep, error)
	RemoveGiantWhale(ctx context.Context, in *RemoveGiantWhaleReq, opts ...grpc.CallOption) (*RemoveGiantWhaleRep, error)
}

GiantWhaleServiceClient is the client API for GiantWhaleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type GiantWhaleServiceServer

type GiantWhaleServiceServer interface {
	GetSupportChain(context.Context, *SupportChainReq) (*SupportChainRep, error)
	SetGiantWhale(context.Context, *SetGiantWhaleReq) (*SetGiantWhaleRep, error)
	GetGiantWhale(context.Context, *GetGiantWhaleReq) (*GetGiantWhaleRep, error)
	RemoveGiantWhale(context.Context, *RemoveGiantWhaleReq) (*RemoveGiantWhaleRep, error)
}

GiantWhaleServiceServer is the server API for GiantWhaleService service. All implementations must embed UnimplementedGiantWhaleServiceServer for forward compatibility

type RemoveGiantWhaleRep

type RemoveGiantWhaleRep struct {
	Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"`
	Msg  string     `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveGiantWhaleRep) Descriptor deprecated

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

Deprecated: Use RemoveGiantWhaleRep.ProtoReflect.Descriptor instead.

func (*RemoveGiantWhaleRep) GetCode

func (x *RemoveGiantWhaleRep) GetCode() ReturnCode

func (*RemoveGiantWhaleRep) GetMsg

func (x *RemoveGiantWhaleRep) GetMsg() string

func (*RemoveGiantWhaleRep) ProtoMessage

func (*RemoveGiantWhaleRep) ProtoMessage()

func (*RemoveGiantWhaleRep) ProtoReflect

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

func (*RemoveGiantWhaleRep) Reset

func (x *RemoveGiantWhaleRep) Reset()

func (*RemoveGiantWhaleRep) String

func (x *RemoveGiantWhaleRep) String() string

type RemoveGiantWhaleReq

type RemoveGiantWhaleReq struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Address       uint32 `protobuf:"varint,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveGiantWhaleReq) Descriptor deprecated

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

Deprecated: Use RemoveGiantWhaleReq.ProtoReflect.Descriptor instead.

func (*RemoveGiantWhaleReq) GetAddress

func (x *RemoveGiantWhaleReq) GetAddress() uint32

func (*RemoveGiantWhaleReq) GetChain

func (x *RemoveGiantWhaleReq) GetChain() string

func (*RemoveGiantWhaleReq) GetConsumerToken

func (x *RemoveGiantWhaleReq) GetConsumerToken() string

func (*RemoveGiantWhaleReq) ProtoMessage

func (*RemoveGiantWhaleReq) ProtoMessage()

func (*RemoveGiantWhaleReq) ProtoReflect

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

func (*RemoveGiantWhaleReq) Reset

func (x *RemoveGiantWhaleReq) Reset()

func (*RemoveGiantWhaleReq) String

func (x *RemoveGiantWhaleReq) String() string

type ReturnCode

type ReturnCode int32
const (
	ReturnCode_SUCCESS ReturnCode = 0
	ReturnCode_ERROR   ReturnCode = 1
)

func (ReturnCode) Descriptor

func (ReturnCode) Descriptor() protoreflect.EnumDescriptor

func (ReturnCode) Enum

func (x ReturnCode) Enum() *ReturnCode

func (ReturnCode) EnumDescriptor deprecated

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

Deprecated: Use ReturnCode.Descriptor instead.

func (ReturnCode) Number

func (x ReturnCode) Number() protoreflect.EnumNumber

func (ReturnCode) String

func (x ReturnCode) String() string

func (ReturnCode) Type

type SetGiantWhaleRep

type SetGiantWhaleRep struct {
	Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"`
	Msg  string     `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*SetGiantWhaleRep) Descriptor deprecated

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

Deprecated: Use SetGiantWhaleRep.ProtoReflect.Descriptor instead.

func (*SetGiantWhaleRep) GetCode

func (x *SetGiantWhaleRep) GetCode() ReturnCode

func (*SetGiantWhaleRep) GetMsg

func (x *SetGiantWhaleRep) GetMsg() string

func (*SetGiantWhaleRep) ProtoMessage

func (*SetGiantWhaleRep) ProtoMessage()

func (*SetGiantWhaleRep) ProtoReflect

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

func (*SetGiantWhaleRep) Reset

func (x *SetGiantWhaleRep) Reset()

func (*SetGiantWhaleRep) String

func (x *SetGiantWhaleRep) String() string

type SetGiantWhaleReq

type SetGiantWhaleReq struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Address       string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Holder        string `protobuf:"bytes,4,opt,name=holder,proto3" json:"holder,omitempty"`
	// contains filtered or unexported fields
}

func (*SetGiantWhaleReq) Descriptor deprecated

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

Deprecated: Use SetGiantWhaleReq.ProtoReflect.Descriptor instead.

func (*SetGiantWhaleReq) GetAddress

func (x *SetGiantWhaleReq) GetAddress() string

func (*SetGiantWhaleReq) GetChain

func (x *SetGiantWhaleReq) GetChain() string

func (*SetGiantWhaleReq) GetConsumerToken

func (x *SetGiantWhaleReq) GetConsumerToken() string

func (*SetGiantWhaleReq) GetHolder

func (x *SetGiantWhaleReq) GetHolder() string

func (*SetGiantWhaleReq) ProtoMessage

func (*SetGiantWhaleReq) ProtoMessage()

func (*SetGiantWhaleReq) ProtoReflect

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

func (*SetGiantWhaleReq) Reset

func (x *SetGiantWhaleReq) Reset()

func (*SetGiantWhaleReq) String

func (x *SetGiantWhaleReq) String() string

type SupportChainRep

type SupportChainRep struct {
	Code   ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"`
	Msg    string     `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Chains []*Chain   `protobuf:"bytes,3,rep,name=chains,proto3" json:"chains,omitempty"`
	// contains filtered or unexported fields
}

func (*SupportChainRep) Descriptor deprecated

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

Deprecated: Use SupportChainRep.ProtoReflect.Descriptor instead.

func (*SupportChainRep) GetChains

func (x *SupportChainRep) GetChains() []*Chain

func (*SupportChainRep) GetCode

func (x *SupportChainRep) GetCode() ReturnCode

func (*SupportChainRep) GetMsg

func (x *SupportChainRep) GetMsg() string

func (*SupportChainRep) ProtoMessage

func (*SupportChainRep) ProtoMessage()

func (*SupportChainRep) ProtoReflect

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

func (*SupportChainRep) Reset

func (x *SupportChainRep) Reset()

func (*SupportChainRep) String

func (x *SupportChainRep) String() string

type SupportChainReq

type SupportChainReq struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SupportChainReq) Descriptor deprecated

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

Deprecated: Use SupportChainReq.ProtoReflect.Descriptor instead.

func (*SupportChainReq) GetConsumerToken

func (x *SupportChainReq) GetConsumerToken() string

func (*SupportChainReq) ProtoMessage

func (*SupportChainReq) ProtoMessage()

func (*SupportChainReq) ProtoReflect

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

func (*SupportChainReq) Reset

func (x *SupportChainReq) Reset()

func (*SupportChainReq) String

func (x *SupportChainReq) String() string

type UnimplementedGiantWhaleServiceServer

type UnimplementedGiantWhaleServiceServer struct {
}

UnimplementedGiantWhaleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGiantWhaleServiceServer) GetGiantWhale

func (UnimplementedGiantWhaleServiceServer) GetSupportChain

func (UnimplementedGiantWhaleServiceServer) RemoveGiantWhale

func (UnimplementedGiantWhaleServiceServer) SetGiantWhale

type UnsafeGiantWhaleServiceServer

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

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

Jump to

Keyboard shortcuts

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