engine_to_bts

package module
v0.0.0-...-a47a548 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

protocからの生成コマンド

protoc --go_out=. --go_opt=paths=source_relative \
    --go-grpc_out=. --go-grpc_opt=paths=source_relative \
    ./engine_to_bts.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EngineToBts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "enginetobts.EngineToBts",
	HandlerType: (*EngineToBtsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTriples",
			Handler:    _EngineToBts_GetTriples_Handler,
		},
		{
			MethodName: "GetRandBits",
			Handler:    _EngineToBts_GetRandBits_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "engine_to_bts.proto",
}

EngineToBts_ServiceDesc is the grpc.ServiceDesc for EngineToBts 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_engine_to_bts_proto protoreflect.FileDescriptor

Functions

func RegisterEngineToBtsServer

func RegisterEngineToBtsServer(s grpc.ServiceRegistrar, srv EngineToBtsServer)

Types

type EngineToBtsClient

type EngineToBtsClient interface {
	GetTriples(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetTriplesResponse, error)
	GetRandBits(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetRandBitsResponse, error)
}

EngineToBtsClient is the client API for EngineToBts 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 EngineToBtsServer

type EngineToBtsServer interface {
	GetTriples(context.Context, *GetRequest) (*GetTriplesResponse, error)
	GetRandBits(context.Context, *GetRequest) (*GetRandBitsResponse, error)
	// contains filtered or unexported methods
}

EngineToBtsServer is the server API for EngineToBts service. All implementations must embed UnimplementedEngineToBtsServer for forward compatibility

type GetRandBitsResponse

type GetRandBitsResponse struct {
	Randbits []int64 `protobuf:"varint,1,rep,packed,name=randbits,proto3" json:"randbits,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRandBitsResponse) Descriptor deprecated

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

Deprecated: Use GetRandBitsResponse.ProtoReflect.Descriptor instead.

func (*GetRandBitsResponse) GetRandbits

func (x *GetRandBitsResponse) GetRandbits() []int64

func (*GetRandBitsResponse) ProtoMessage

func (*GetRandBitsResponse) ProtoMessage()

func (*GetRandBitsResponse) ProtoReflect

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

func (*GetRandBitsResponse) Reset

func (x *GetRandBitsResponse) Reset()

func (*GetRandBitsResponse) String

func (x *GetRandBitsResponse) String() string

type GetRequest

type GetRequest struct {
	JobId     uint32 `protobuf:"varint,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	Amount    uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	RequestId int64  `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetAmount

func (x *GetRequest) GetAmount() uint32

func (*GetRequest) GetJobId

func (x *GetRequest) GetJobId() uint32

func (*GetRequest) GetRequestId

func (x *GetRequest) GetRequestId() int64

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetTriplesResponse

type GetTriplesResponse struct {
	Triples []*Triple `protobuf:"bytes,1,rep,name=triples,proto3" json:"triples,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTriplesResponse) Descriptor deprecated

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

Deprecated: Use GetTriplesResponse.ProtoReflect.Descriptor instead.

func (*GetTriplesResponse) GetTriples

func (x *GetTriplesResponse) GetTriples() []*Triple

func (*GetTriplesResponse) ProtoMessage

func (*GetTriplesResponse) ProtoMessage()

func (*GetTriplesResponse) ProtoReflect

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

func (*GetTriplesResponse) Reset

func (x *GetTriplesResponse) Reset()

func (*GetTriplesResponse) String

func (x *GetTriplesResponse) String() string

type Triple

type Triple struct {
	A *common_types.BigIntByte `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
	B *common_types.BigIntByte `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
	C *common_types.BigIntByte `protobuf:"bytes,4,opt,name=c,proto3" json:"c,omitempty"`
	// contains filtered or unexported fields
}

func (*Triple) Descriptor deprecated

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

Deprecated: Use Triple.ProtoReflect.Descriptor instead.

func (*Triple) GetA

func (x *Triple) GetA() *common_types.BigIntByte

func (*Triple) GetB

func (x *Triple) GetB() *common_types.BigIntByte

func (*Triple) GetC

func (x *Triple) GetC() *common_types.BigIntByte

func (*Triple) ProtoMessage

func (*Triple) ProtoMessage()

func (*Triple) ProtoReflect

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

func (*Triple) Reset

func (x *Triple) Reset()

func (*Triple) String

func (x *Triple) String() string

type UnimplementedEngineToBtsServer

type UnimplementedEngineToBtsServer struct {
}

UnimplementedEngineToBtsServer must be embedded to have forward compatible implementations.

func (UnimplementedEngineToBtsServer) GetRandBits

func (UnimplementedEngineToBtsServer) GetTriples

type UnsafeEngineToBtsServer

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

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

Jump to

Keyboard shortcuts

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