Commit f46de7e9 authored by vicotor's avatar vicotor

update

parent d3a5bdd9
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
PROTO_GO_FILES = $(shell find . -path -prune -o -type f -name '*.pb.go' -print | grep -v vendor) PROTO_GO_FILES = $(shell find . -path -prune -o -type f -name '*.pb.go' -print | grep -v vendor)
#PROTO_GO_FILES = $(patsubst %.proto, %.pb.go, $(PROTO_FILES)) #PROTO_GO_FILES = $(patsubst %.proto, %.pb.go, $(PROTO_FILES))
DEST=${PWD} DEST=${PWD}
BIN=protocol BIN=odysseus
.PHONY: all build generate deps clean lint .PHONY: all build generate deps clean lint
......
...@@ -16,9 +16,9 @@ enum TaskType { ...@@ -16,9 +16,9 @@ enum TaskType {
} }
enum BillingMethod { enum BillingMethod {
BillingFree = 1; BillingFree = 0;
BillingByTime = 2; BillingByTime = 1;
BillingByDuration = 3; BillingByDuration = 2;
} }
message TaskContent { message TaskContent {
......
...@@ -2,16 +2,15 @@ version: v1 ...@@ -2,16 +2,15 @@ version: v1
managed: managed:
enabled: true enabled: true
go_package_prefix: go_package_prefix:
default: github.com/CaduceusMetaverseProtocol/MetaProtocol/gen/proto/go default: github.com/odysseus/odysseus-protocol/gen/proto/go
except: except:
- buf.build/gogo/protobuf - buf.build/gogo/protobuf
plugins: plugins:
- name: gogo - name: gogo
out: gen/proto/go out: gen/proto/go
opt: opt:
- paths=source_relative - paths=source_relative
- Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types - Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types
- Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types - Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types
- Mgoogle/protobuf=github.com/gogo/protobuf/types - Mgoogle/protobuf=github.com/gogo/protobuf/types
......
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: base/gogo.proto
package base
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
var E_GoprotoEnumPrefix = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.EnumOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 62001,
Name: "gogoproto.goproto_enum_prefix",
Tag: "varint,62001,opt,name=goproto_enum_prefix",
Filename: "base/gogo.proto",
}
var E_GoprotoEnumStringer = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.EnumOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 62021,
Name: "gogoproto.goproto_enum_stringer",
Tag: "varint,62021,opt,name=goproto_enum_stringer",
Filename: "base/gogo.proto",
}
var E_EnumStringer = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.EnumOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 62022,
Name: "gogoproto.enum_stringer",
Tag: "varint,62022,opt,name=enum_stringer",
Filename: "base/gogo.proto",
}
var E_EnumCustomname = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.EnumOptions)(nil),
ExtensionType: (*string)(nil),
Field: 62023,
Name: "gogoproto.enum_customname",
Tag: "bytes,62023,opt,name=enum_customname",
Filename: "base/gogo.proto",
}
var E_Enumdecl = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.EnumOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 62024,
Name: "gogoproto.enumdecl",
Tag: "varint,62024,opt,name=enumdecl",
Filename: "base/gogo.proto",
}
var E_EnumvalueCustomname = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.EnumValueOptions)(nil),
ExtensionType: (*string)(nil),
Field: 66001,
Name: "gogoproto.enumvalue_customname",
Tag: "bytes,66001,opt,name=enumvalue_customname",
Filename: "base/gogo.proto",
}
var E_GoprotoGettersAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63001,
Name: "gogoproto.goproto_getters_all",
Tag: "varint,63001,opt,name=goproto_getters_all",
Filename: "base/gogo.proto",
}
var E_GoprotoEnumPrefixAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63002,
Name: "gogoproto.goproto_enum_prefix_all",
Tag: "varint,63002,opt,name=goproto_enum_prefix_all",
Filename: "base/gogo.proto",
}
var E_GoprotoStringerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63003,
Name: "gogoproto.goproto_stringer_all",
Tag: "varint,63003,opt,name=goproto_stringer_all",
Filename: "base/gogo.proto",
}
var E_VerboseEqualAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63004,
Name: "gogoproto.verbose_equal_all",
Tag: "varint,63004,opt,name=verbose_equal_all",
Filename: "base/gogo.proto",
}
var E_FaceAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63005,
Name: "gogoproto.face_all",
Tag: "varint,63005,opt,name=face_all",
Filename: "base/gogo.proto",
}
var E_GostringAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63006,
Name: "gogoproto.gostring_all",
Tag: "varint,63006,opt,name=gostring_all",
Filename: "base/gogo.proto",
}
var E_PopulateAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63007,
Name: "gogoproto.populate_all",
Tag: "varint,63007,opt,name=populate_all",
Filename: "base/gogo.proto",
}
var E_StringerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63008,
Name: "gogoproto.stringer_all",
Tag: "varint,63008,opt,name=stringer_all",
Filename: "base/gogo.proto",
}
var E_OnlyoneAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63009,
Name: "gogoproto.onlyone_all",
Tag: "varint,63009,opt,name=onlyone_all",
Filename: "base/gogo.proto",
}
var E_EqualAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63013,
Name: "gogoproto.equal_all",
Tag: "varint,63013,opt,name=equal_all",
Filename: "base/gogo.proto",
}
var E_DescriptionAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63014,
Name: "gogoproto.description_all",
Tag: "varint,63014,opt,name=description_all",
Filename: "base/gogo.proto",
}
var E_TestgenAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63015,
Name: "gogoproto.testgen_all",
Tag: "varint,63015,opt,name=testgen_all",
Filename: "base/gogo.proto",
}
var E_BenchgenAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63016,
Name: "gogoproto.benchgen_all",
Tag: "varint,63016,opt,name=benchgen_all",
Filename: "base/gogo.proto",
}
var E_MarshalerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63017,
Name: "gogoproto.marshaler_all",
Tag: "varint,63017,opt,name=marshaler_all",
Filename: "base/gogo.proto",
}
var E_UnmarshalerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63018,
Name: "gogoproto.unmarshaler_all",
Tag: "varint,63018,opt,name=unmarshaler_all",
Filename: "base/gogo.proto",
}
var E_StableMarshalerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63019,
Name: "gogoproto.stable_marshaler_all",
Tag: "varint,63019,opt,name=stable_marshaler_all",
Filename: "base/gogo.proto",
}
var E_SizerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63020,
Name: "gogoproto.sizer_all",
Tag: "varint,63020,opt,name=sizer_all",
Filename: "base/gogo.proto",
}
var E_GoprotoEnumStringerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63021,
Name: "gogoproto.goproto_enum_stringer_all",
Tag: "varint,63021,opt,name=goproto_enum_stringer_all",
Filename: "base/gogo.proto",
}
var E_EnumStringerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63022,
Name: "gogoproto.enum_stringer_all",
Tag: "varint,63022,opt,name=enum_stringer_all",
Filename: "base/gogo.proto",
}
var E_UnsafeMarshalerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63023,
Name: "gogoproto.unsafe_marshaler_all",
Tag: "varint,63023,opt,name=unsafe_marshaler_all",
Filename: "base/gogo.proto",
}
var E_UnsafeUnmarshalerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63024,
Name: "gogoproto.unsafe_unmarshaler_all",
Tag: "varint,63024,opt,name=unsafe_unmarshaler_all",
Filename: "base/gogo.proto",
}
var E_GoprotoExtensionsMapAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63025,
Name: "gogoproto.goproto_extensions_map_all",
Tag: "varint,63025,opt,name=goproto_extensions_map_all",
Filename: "base/gogo.proto",
}
var E_GoprotoUnrecognizedAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63026,
Name: "gogoproto.goproto_unrecognized_all",
Tag: "varint,63026,opt,name=goproto_unrecognized_all",
Filename: "base/gogo.proto",
}
var E_GogoprotoImport = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63027,
Name: "gogoproto.gogoproto_import",
Tag: "varint,63027,opt,name=gogoproto_import",
Filename: "base/gogo.proto",
}
var E_ProtosizerAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63028,
Name: "gogoproto.protosizer_all",
Tag: "varint,63028,opt,name=protosizer_all",
Filename: "base/gogo.proto",
}
var E_CompareAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63029,
Name: "gogoproto.compare_all",
Tag: "varint,63029,opt,name=compare_all",
Filename: "base/gogo.proto",
}
var E_TypedeclAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63030,
Name: "gogoproto.typedecl_all",
Tag: "varint,63030,opt,name=typedecl_all",
Filename: "base/gogo.proto",
}
var E_EnumdeclAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63031,
Name: "gogoproto.enumdecl_all",
Tag: "varint,63031,opt,name=enumdecl_all",
Filename: "base/gogo.proto",
}
var E_GoprotoRegistration = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63032,
Name: "gogoproto.goproto_registration",
Tag: "varint,63032,opt,name=goproto_registration",
Filename: "base/gogo.proto",
}
var E_MessagenameAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63033,
Name: "gogoproto.messagename_all",
Tag: "varint,63033,opt,name=messagename_all",
Filename: "base/gogo.proto",
}
var E_GoprotoSizecacheAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63034,
Name: "gogoproto.goproto_sizecache_all",
Tag: "varint,63034,opt,name=goproto_sizecache_all",
Filename: "base/gogo.proto",
}
var E_GoprotoUnkeyedAll = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FileOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 63035,
Name: "gogoproto.goproto_unkeyed_all",
Tag: "varint,63035,opt,name=goproto_unkeyed_all",
Filename: "base/gogo.proto",
}
var E_GoprotoGetters = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64001,
Name: "gogoproto.goproto_getters",
Tag: "varint,64001,opt,name=goproto_getters",
Filename: "base/gogo.proto",
}
var E_GoprotoStringer = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64003,
Name: "gogoproto.goproto_stringer",
Tag: "varint,64003,opt,name=goproto_stringer",
Filename: "base/gogo.proto",
}
var E_VerboseEqual = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64004,
Name: "gogoproto.verbose_equal",
Tag: "varint,64004,opt,name=verbose_equal",
Filename: "base/gogo.proto",
}
var E_Face = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64005,
Name: "gogoproto.face",
Tag: "varint,64005,opt,name=face",
Filename: "base/gogo.proto",
}
var E_Gostring = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64006,
Name: "gogoproto.gostring",
Tag: "varint,64006,opt,name=gostring",
Filename: "base/gogo.proto",
}
var E_Populate = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64007,
Name: "gogoproto.populate",
Tag: "varint,64007,opt,name=populate",
Filename: "base/gogo.proto",
}
var E_Stringer = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 67008,
Name: "gogoproto.stringer",
Tag: "varint,67008,opt,name=stringer",
Filename: "base/gogo.proto",
}
var E_Onlyone = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64009,
Name: "gogoproto.onlyone",
Tag: "varint,64009,opt,name=onlyone",
Filename: "base/gogo.proto",
}
var E_Equal = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64013,
Name: "gogoproto.equal",
Tag: "varint,64013,opt,name=equal",
Filename: "base/gogo.proto",
}
var E_Description = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64014,
Name: "gogoproto.description",
Tag: "varint,64014,opt,name=description",
Filename: "base/gogo.proto",
}
var E_Testgen = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64015,
Name: "gogoproto.testgen",
Tag: "varint,64015,opt,name=testgen",
Filename: "base/gogo.proto",
}
var E_Benchgen = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64016,
Name: "gogoproto.benchgen",
Tag: "varint,64016,opt,name=benchgen",
Filename: "base/gogo.proto",
}
var E_Marshaler = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64017,
Name: "gogoproto.marshaler",
Tag: "varint,64017,opt,name=marshaler",
Filename: "base/gogo.proto",
}
var E_Unmarshaler = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64018,
Name: "gogoproto.unmarshaler",
Tag: "varint,64018,opt,name=unmarshaler",
Filename: "base/gogo.proto",
}
var E_StableMarshaler = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64019,
Name: "gogoproto.stable_marshaler",
Tag: "varint,64019,opt,name=stable_marshaler",
Filename: "base/gogo.proto",
}
var E_Sizer = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64020,
Name: "gogoproto.sizer",
Tag: "varint,64020,opt,name=sizer",
Filename: "base/gogo.proto",
}
var E_UnsafeMarshaler = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64023,
Name: "gogoproto.unsafe_marshaler",
Tag: "varint,64023,opt,name=unsafe_marshaler",
Filename: "base/gogo.proto",
}
var E_UnsafeUnmarshaler = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64024,
Name: "gogoproto.unsafe_unmarshaler",
Tag: "varint,64024,opt,name=unsafe_unmarshaler",
Filename: "base/gogo.proto",
}
var E_GoprotoExtensionsMap = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64025,
Name: "gogoproto.goproto_extensions_map",
Tag: "varint,64025,opt,name=goproto_extensions_map",
Filename: "base/gogo.proto",
}
var E_GoprotoUnrecognized = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64026,
Name: "gogoproto.goproto_unrecognized",
Tag: "varint,64026,opt,name=goproto_unrecognized",
Filename: "base/gogo.proto",
}
var E_Protosizer = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64028,
Name: "gogoproto.protosizer",
Tag: "varint,64028,opt,name=protosizer",
Filename: "base/gogo.proto",
}
var E_Compare = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64029,
Name: "gogoproto.compare",
Tag: "varint,64029,opt,name=compare",
Filename: "base/gogo.proto",
}
var E_Typedecl = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64030,
Name: "gogoproto.typedecl",
Tag: "varint,64030,opt,name=typedecl",
Filename: "base/gogo.proto",
}
var E_Messagename = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64033,
Name: "gogoproto.messagename",
Tag: "varint,64033,opt,name=messagename",
Filename: "base/gogo.proto",
}
var E_GoprotoSizecache = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64034,
Name: "gogoproto.goproto_sizecache",
Tag: "varint,64034,opt,name=goproto_sizecache",
Filename: "base/gogo.proto",
}
var E_GoprotoUnkeyed = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 64035,
Name: "gogoproto.goproto_unkeyed",
Tag: "varint,64035,opt,name=goproto_unkeyed",
Filename: "base/gogo.proto",
}
var E_Nullable = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 65001,
Name: "gogoproto.nullable",
Tag: "varint,65001,opt,name=nullable",
Filename: "base/gogo.proto",
}
var E_Embed = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 65002,
Name: "gogoproto.embed",
Tag: "varint,65002,opt,name=embed",
Filename: "base/gogo.proto",
}
var E_Customtype = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*string)(nil),
Field: 65003,
Name: "gogoproto.customtype",
Tag: "bytes,65003,opt,name=customtype",
Filename: "base/gogo.proto",
}
var E_Customname = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*string)(nil),
Field: 65004,
Name: "gogoproto.customname",
Tag: "bytes,65004,opt,name=customname",
Filename: "base/gogo.proto",
}
var E_Jsontag = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*string)(nil),
Field: 65005,
Name: "gogoproto.jsontag",
Tag: "bytes,65005,opt,name=jsontag",
Filename: "base/gogo.proto",
}
var E_Moretags = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*string)(nil),
Field: 65006,
Name: "gogoproto.moretags",
Tag: "bytes,65006,opt,name=moretags",
Filename: "base/gogo.proto",
}
var E_Casttype = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*string)(nil),
Field: 65007,
Name: "gogoproto.casttype",
Tag: "bytes,65007,opt,name=casttype",
Filename: "base/gogo.proto",
}
var E_Castkey = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*string)(nil),
Field: 65008,
Name: "gogoproto.castkey",
Tag: "bytes,65008,opt,name=castkey",
Filename: "base/gogo.proto",
}
var E_Castvalue = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*string)(nil),
Field: 65009,
Name: "gogoproto.castvalue",
Tag: "bytes,65009,opt,name=castvalue",
Filename: "base/gogo.proto",
}
var E_Stdtime = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 65010,
Name: "gogoproto.stdtime",
Tag: "varint,65010,opt,name=stdtime",
Filename: "base/gogo.proto",
}
var E_Stdduration = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 65011,
Name: "gogoproto.stdduration",
Tag: "varint,65011,opt,name=stdduration",
Filename: "base/gogo.proto",
}
var E_Wktpointer = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 65012,
Name: "gogoproto.wktpointer",
Tag: "varint,65012,opt,name=wktpointer",
Filename: "base/gogo.proto",
}
func init() {
proto.RegisterExtension(E_GoprotoEnumPrefix)
proto.RegisterExtension(E_GoprotoEnumStringer)
proto.RegisterExtension(E_EnumStringer)
proto.RegisterExtension(E_EnumCustomname)
proto.RegisterExtension(E_Enumdecl)
proto.RegisterExtension(E_EnumvalueCustomname)
proto.RegisterExtension(E_GoprotoGettersAll)
proto.RegisterExtension(E_GoprotoEnumPrefixAll)
proto.RegisterExtension(E_GoprotoStringerAll)
proto.RegisterExtension(E_VerboseEqualAll)
proto.RegisterExtension(E_FaceAll)
proto.RegisterExtension(E_GostringAll)
proto.RegisterExtension(E_PopulateAll)
proto.RegisterExtension(E_StringerAll)
proto.RegisterExtension(E_OnlyoneAll)
proto.RegisterExtension(E_EqualAll)
proto.RegisterExtension(E_DescriptionAll)
proto.RegisterExtension(E_TestgenAll)
proto.RegisterExtension(E_BenchgenAll)
proto.RegisterExtension(E_MarshalerAll)
proto.RegisterExtension(E_UnmarshalerAll)
proto.RegisterExtension(E_StableMarshalerAll)
proto.RegisterExtension(E_SizerAll)
proto.RegisterExtension(E_GoprotoEnumStringerAll)
proto.RegisterExtension(E_EnumStringerAll)
proto.RegisterExtension(E_UnsafeMarshalerAll)
proto.RegisterExtension(E_UnsafeUnmarshalerAll)
proto.RegisterExtension(E_GoprotoExtensionsMapAll)
proto.RegisterExtension(E_GoprotoUnrecognizedAll)
proto.RegisterExtension(E_GogoprotoImport)
proto.RegisterExtension(E_ProtosizerAll)
proto.RegisterExtension(E_CompareAll)
proto.RegisterExtension(E_TypedeclAll)
proto.RegisterExtension(E_EnumdeclAll)
proto.RegisterExtension(E_GoprotoRegistration)
proto.RegisterExtension(E_MessagenameAll)
proto.RegisterExtension(E_GoprotoSizecacheAll)
proto.RegisterExtension(E_GoprotoUnkeyedAll)
proto.RegisterExtension(E_GoprotoGetters)
proto.RegisterExtension(E_GoprotoStringer)
proto.RegisterExtension(E_VerboseEqual)
proto.RegisterExtension(E_Face)
proto.RegisterExtension(E_Gostring)
proto.RegisterExtension(E_Populate)
proto.RegisterExtension(E_Stringer)
proto.RegisterExtension(E_Onlyone)
proto.RegisterExtension(E_Equal)
proto.RegisterExtension(E_Description)
proto.RegisterExtension(E_Testgen)
proto.RegisterExtension(E_Benchgen)
proto.RegisterExtension(E_Marshaler)
proto.RegisterExtension(E_Unmarshaler)
proto.RegisterExtension(E_StableMarshaler)
proto.RegisterExtension(E_Sizer)
proto.RegisterExtension(E_UnsafeMarshaler)
proto.RegisterExtension(E_UnsafeUnmarshaler)
proto.RegisterExtension(E_GoprotoExtensionsMap)
proto.RegisterExtension(E_GoprotoUnrecognized)
proto.RegisterExtension(E_Protosizer)
proto.RegisterExtension(E_Compare)
proto.RegisterExtension(E_Typedecl)
proto.RegisterExtension(E_Messagename)
proto.RegisterExtension(E_GoprotoSizecache)
proto.RegisterExtension(E_GoprotoUnkeyed)
proto.RegisterExtension(E_Nullable)
proto.RegisterExtension(E_Embed)
proto.RegisterExtension(E_Customtype)
proto.RegisterExtension(E_Customname)
proto.RegisterExtension(E_Jsontag)
proto.RegisterExtension(E_Moretags)
proto.RegisterExtension(E_Casttype)
proto.RegisterExtension(E_Castkey)
proto.RegisterExtension(E_Castvalue)
proto.RegisterExtension(E_Stdtime)
proto.RegisterExtension(E_Stdduration)
proto.RegisterExtension(E_Wktpointer)
}
func init() { proto.RegisterFile("base/gogo.proto", fileDescriptor_187e1c6763207a24) }
var fileDescriptor_187e1c6763207a24 = []byte{
// 1392 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x98, 0x49, 0x6f, 0x1c, 0x45,
0x14, 0x80, 0x95, 0x4d, 0xb1, 0xcb, 0x76, 0x1c, 0x3b, 0x0b, 0x21, 0x02, 0x11, 0x6e, 0x5c, 0xf0,
0x9c, 0xa2, 0x28, 0x65, 0x45, 0x91, 0x63, 0x39, 0x56, 0x10, 0x0e, 0x83, 0x13, 0x87, 0xb0, 0x48,
0xa3, 0x9e, 0x9e, 0x72, 0xbb, 0x49, 0x77, 0xd7, 0xd0, 0x55, 0x1d, 0xe2, 0xdc, 0x50, 0x58, 0x84,
0x10, 0x3b, 0x52, 0x48, 0x48, 0x02, 0x09, 0x62, 0x0b, 0x6b, 0xd8, 0x97, 0x0b, 0x17, 0x16, 0x71,
0xe3, 0x2f, 0x20, 0x2e, 0x04, 0xb3, 0xfb, 0xe6, 0x0b, 0x7a, 0xdd, 0xef, 0xf5, 0xd4, 0x8c, 0x47,
0xaa, 0x9a, 0x5b, 0xd9, 0x53, 0xdf, 0x37, 0xd5, 0xef, 0x55, 0xd5, 0x7b, 0xd3, 0x6c, 0xb8, 0xee,
0x29, 0x51, 0x09, 0x64, 0x20, 0xc7, 0x9a, 0xa9, 0xd4, 0x72, 0xb4, 0x1f, 0xc6, 0xf9, 0x70, 0xe7,
0xae, 0x40, 0xca, 0x20, 0x12, 0x95, 0xfc, 0xaf, 0x7a, 0x36, 0x5f, 0x69, 0x08, 0xe5, 0xa7, 0x61,
0x53, 0xcb, 0xb4, 0x98, 0xcc, 0x0f, 0xb3, 0x2d, 0x38, 0xb9, 0x26, 0x92, 0x2c, 0xae, 0x35, 0x53,
0x31, 0x1f, 0x9e, 0x1a, 0xbd, 0x69, 0xac, 0x20, 0xc7, 0x88, 0x1c, 0x9b, 0x4a, 0xb2, 0xf8, 0xae,
0xa6, 0x0e, 0x65,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x58, 0x46, 0x83, 0x81, 0x1c, 0x38, 0xbb, 0x86, 0x0d, 0xf9, 0x32, 0x1e,
0x2b, 0x7f, 0x52, 0x1c, 0xe8, 0x9f, 0x96, 0x81, 0xac, 0xc2, 0xb0, 0xba, 0xe6, 0xbe, 0x3d, 0x41,
0xa8, 0x17, 0xb2, 0xfa, 0x98, 0x2f, 0xe3, 0x8a, 0x6c, 0x2c, 0x2a, 0x25, 0x32, 0x55, 0x0e, 0x6e,
0xcf, 0x01, 0x5f, 0x46, 0x95, 0x40, 0x24, 0xc5, 0x6b, 0xd6, 0x4a, 0x20, 0x2b, 0x75, 0x4f, 0x89,
0x2b, 0x6b, 0xd7, 0x4d, 0x1f, 0x3f, 0x7e, 0x75, 0x6d, 0x2e, 0xcb, 0x3f, 0xf9, 0xc9, 0x18, 0xff,
0xb2, 0x76, 0x5b, 0x39, 0x7e, 0x60, 0xba, 0x7a, 0x60, 0x46, 0x68, 0xaf, 0xe1, 0x69, 0xef, 0xba,
0x31, 0xe7, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0xf0, 0xd6, 0xd2, 0xdb, 0x15, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: base/v1/odysseus.proto
package basev1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
_ "github.com/odysseus/odysseus-protocol/gen/proto/go/base"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type TaskType int32
const (
TaskType_SystemTask TaskType = 0
TaskType_ComputeTask TaskType = 1
TaskType_CustomTask TaskType = 2
)
var TaskType_name = map[int32]string{
0: "SystemTask",
1: "ComputeTask",
2: "CustomTask",
}
var TaskType_value = map[string]int32{
"SystemTask": 0,
"ComputeTask": 1,
"CustomTask": 2,
}
func (x TaskType) String() string {
return proto.EnumName(TaskType_name, int32(x))
}
func (TaskType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_91b466c680c1fa25, []int{0}
}
type BillingMethod int32
const (
BillingMethod_BillingFree BillingMethod = 0
BillingMethod_BillingByTime BillingMethod = 1
BillingMethod_BillingByDuration BillingMethod = 2
)
var BillingMethod_name = map[int32]string{
0: "BillingFree",
1: "BillingByTime",
2: "BillingByDuration",
}
var BillingMethod_value = map[string]int32{
"BillingFree": 0,
"BillingByTime": 1,
"BillingByDuration": 2,
}
func (x BillingMethod) String() string {
return proto.EnumName(BillingMethod_name, int32(x))
}
func (BillingMethod) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_91b466c680c1fa25, []int{1}
}
type TaskContent struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskType TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=base.v1.TaskType" json:"task_type,omitempty"`
TaskParam []byte `protobuf:"bytes,3,opt,name=task_param,json=taskParam,proto3" json:"task_param,omitempty"`
MaxExecuteDuration uint64 `protobuf:"varint,4,opt,name=max_execute_duration,json=maxExecuteDuration,proto3" json:"max_execute_duration,omitempty"`
Model *ModelContent `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskContent) Reset() { *m = TaskContent{} }
func (m *TaskContent) String() string { return proto.CompactTextString(m) }
func (*TaskContent) ProtoMessage() {}
func (*TaskContent) Descriptor() ([]byte, []int) {
return fileDescriptor_91b466c680c1fa25, []int{0}
}
func (m *TaskContent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskContent.Unmarshal(m, b)
}
func (m *TaskContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskContent.Marshal(b, m, deterministic)
}
func (m *TaskContent) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskContent.Merge(m, src)
}
func (m *TaskContent) XXX_Size() int {
return xxx_messageInfo_TaskContent.Size(m)
}
func (m *TaskContent) XXX_DiscardUnknown() {
xxx_messageInfo_TaskContent.DiscardUnknown(m)
}
var xxx_messageInfo_TaskContent proto.InternalMessageInfo
func (m *TaskContent) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
func (m *TaskContent) GetTaskType() TaskType {
if m != nil {
return m.TaskType
}
return TaskType_SystemTask
}
func (m *TaskContent) GetTaskParam() []byte {
if m != nil {
return m.TaskParam
}
return nil
}
func (m *TaskContent) GetMaxExecuteDuration() uint64 {
if m != nil {
return m.MaxExecuteDuration
}
return 0
}
func (m *TaskContent) GetModel() *ModelContent {
if m != nil {
return m.Model
}
return nil
}
func (*TaskContent) XXX_MessageName() string {
return "base.v1.TaskContent"
}
type ModelContent struct {
ModelName string `protobuf:"bytes,1,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
ModelType string `protobuf:"bytes,2,opt,name=model_type,json=modelType,proto3" json:"model_type,omitempty"`
ModelInstance string `protobuf:"bytes,3,opt,name=model_instance,json=modelInstance,proto3" json:"model_instance,omitempty"`
RequirePower string `protobuf:"bytes,4,opt,name=require_power,json=requirePower,proto3" json:"require_power,omitempty"`
Billing BillingMethod `protobuf:"varint,5,opt,name=billing,proto3,enum=base.v1.BillingMethod" json:"billing,omitempty"`
Cost uint64 `protobuf:"varint,6,opt,name=cost,proto3" json:"cost,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ModelContent) Reset() { *m = ModelContent{} }
func (m *ModelContent) String() string { return proto.CompactTextString(m) }
func (*ModelContent) ProtoMessage() {}
func (*ModelContent) Descriptor() ([]byte, []int) {
return fileDescriptor_91b466c680c1fa25, []int{1}
}
func (m *ModelContent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModelContent.Unmarshal(m, b)
}
func (m *ModelContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModelContent.Marshal(b, m, deterministic)
}
func (m *ModelContent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModelContent.Merge(m, src)
}
func (m *ModelContent) XXX_Size() int {
return xxx_messageInfo_ModelContent.Size(m)
}
func (m *ModelContent) XXX_DiscardUnknown() {
xxx_messageInfo_ModelContent.DiscardUnknown(m)
}
var xxx_messageInfo_ModelContent proto.InternalMessageInfo
func (m *ModelContent) GetModelName() string {
if m != nil {
return m.ModelName
}
return ""
}
func (m *ModelContent) GetModelType() string {
if m != nil {
return m.ModelType
}
return ""
}
func (m *ModelContent) GetModelInstance() string {
if m != nil {
return m.ModelInstance
}
return ""
}
func (m *ModelContent) GetRequirePower() string {
if m != nil {
return m.RequirePower
}
return ""
}
func (m *ModelContent) GetBilling() BillingMethod {
if m != nil {
return m.Billing
}
return BillingMethod_BillingFree
}
func (m *ModelContent) GetCost() uint64 {
if m != nil {
return m.Cost
}
return 0
}
func (*ModelContent) XXX_MessageName() string {
return "base.v1.ModelContent"
}
func init() {
proto.RegisterEnum("base.v1.TaskType", TaskType_name, TaskType_value)
proto.RegisterEnum("base.v1.BillingMethod", BillingMethod_name, BillingMethod_value)
proto.RegisterType((*TaskContent)(nil), "base.v1.TaskContent")
proto.RegisterType((*ModelContent)(nil), "base.v1.ModelContent")
}
func init() { proto.RegisterFile("base/v1/odysseus.proto", fileDescriptor_91b466c680c1fa25) }
var fileDescriptor_91b466c680c1fa25 = []byte{
// 545 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0xcd, 0x6e, 0xd3, 0x40,
0x14, 0x85, 0x3b, 0xee, 0x4f, 0x9a, 0x49, 0x93, 0x26, 0x03, 0x2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0x1a,
0xac, 0x93, 0x57, 0xb8, 0xf9, 0xdf, 0x51, 0xea, 0x0b, 0x03, 0x5e, 0xe4, 0x00, 0xed, 0x0d, 0xd2,
0xa9, 0x1c, 0xfe, 0x6a, 0x9c, 0x30, 0x68, 0x23, 0x72, 0x80, 0x3b, 0x15, 0x5a, 0xff, 0x94, 0xb6,
0xe5, 0x7f, 0x42, 0x5f, 0x7f, 0xdd, 0x43, 0xb8, 0x11, 0x72, 0xb6, 0xce, 0xe1, 0x37, 0xdf, 0x98,
0xbd, 0x1d, 0xa9, 0x1d, 0x1b, 0xa1, 0x77, 0x4f, 0xe3, 0x44, 0x5e, 0x17, 0x33, 0x27, 0xe4, 0xac,
0xda, 0xe9, 0xaa, 0x78, 0xac, 0x37, 0x31, 0xe4, 0x73, 0x37, 0x86, 0xb4, 0x5c, 0x69, 0x37, 0xe6,
0xae, 0xd9, 0xe0, 0x73, 0xf5, 0x5c, 0x78, 0x9f, 0xad, 0x4d, 0xff, 0xf2, 0xf2, 0x8b, 0x55, 0xf3,
0xd5, 0x19, 0x13, 0xef, 0x5b, 0x59, 0x5d, 0x4d, 0xbc, 0x9f, 0xd6, 0x2d, 0x53, 0x5d, 0xbd, 0x1c,
0xf9, 0x43, 0x90, 0x34, 0xa2, 0x92, 0xfe, 0xb6, 0x76, 0x15, 0x3d, 0x3b, 0x9b, 0x78, 0xb3, 0x1d,
0xdd, 0xf3, 0xc9, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x68, 0xd0, 0x53, 0x45, 0x57, 0x03, 0x00,
0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: base/v1/options.proto
package basev1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
var E_BytesSize = &proto.ExtensionDesc{
ExtendedType: (*descriptorpb.FieldOptions)(nil),
ExtensionType: (*uint32)(nil),
Field: 50000,
Name: "base.v1.bytes_size",
Tag: "varint,50000,opt,name=bytes_size",
Filename: "base/v1/options.proto",
}
func init() {
proto.RegisterExtension(E_BytesSize)
}
func init() { proto.RegisterFile("base/v1/options.proto", fileDescriptor_35190a910ebf5bf3) }
var fileDescriptor_35190a910ebf5bf3 = []byte{
// 246 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0x4a, 0x2c, 0x4e,
0xd5, 0x2f, 0x33, 0xd4, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f,
0xc9, 0x17, 0x62, 0x07, 0x09, 0xeb, 0x95, 0x19, 0x4a, 0x29, 0xa4, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4,
0xea, 0x83, 0x85, 0x93, 0x4a, 0xd3, 0xf4, 0x53, 0x52, 0x8b, 0x93, 0x8b, 0x32, 0x0b, 0x4a, 0xf2,
0x8b, 0x20, 0x4a, 0xad, 0xec, 0xb8, 0xb8, 0x92, 0x2a, 0x4b, 0x52, 0x8b, 0xe3, 0x8b, 0x33, 0xab,
0x52, 0x85, 0x64, 0xf5, 0x20, 0x1a, 0xf4, 0x60, 0x1a, 0xf4, 0xdc, 0x32, 0x53, 0x73, 0x52, 0xfc,
0x21, 0xa6, 0x4b, 0x5c, 0x68, 0x63, 0x56, 0x60, 0xd4, 0xe0, 0x0d, 0xe2, 0x04, 0x6b, 0x09, 0xce,
0xac, 0x4a, 0x75, 0x9a, 0xcd, 0xc8, 0xc5, 0x9d, 0x9c, 0x9f, 0xab, 0x07, 0xb5, 0xd1, 0x89, 0x07,
0xaa, 0x36, 0x00, 0x64, 0x40, 0x00, 0x63, 0x94, 0x63, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e,
0x72, 0x7e, 0xae, 0x7e, 0x7e, 0x4a, 0x65, 0x71, 0x71, 0x6a, 0x69, 0x31, 0x9c, 0xa1, 0x0b, 0xb6,
0x26, 0x39, 0x3f, 0x47, 0x3f, 0x3d, 0x35, 0x0f, 0xe2, 0x48, 0xfd, 0xf4, 0x7c, 0x7d, 0xa8, 0xa7,
0xac, 0x41, 0x74, 0x99, 0xe1, 0x22, 0x26, 0x66, 0xa7, 0x88, 0x88, 0x55, 0x4c, 0xec, 0x4e, 0x20,
0x2b, 0xc2, 0x0c, 0x4f, 0x41, 0x58, 0x31, 0x61, 0x86, 0x8f, 0x98, 0x84, 0xa1, 0xac, 0x18, 0xf7,
0x00, 0x27, 0xdf, 0xd4, 0x92, 0xc4, 0x94, 0xc4, 0x92, 0xc4, 0x57, 0x4c, 0x1c, 0x20, 0x51, 0x2b,
0xab, 0x30, 0xc3, 0x24, 0x36, 0xb0, 0x99, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x39,
0xbb, 0xa7, 0x28, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: base/v1/resource.proto
package basev1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
_ "github.com/odysseus/odysseus-protocol/gen/proto/go/base"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type Bytes32 struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Bytes32) Reset() { *m = Bytes32{} }
func (m *Bytes32) String() string { return proto.CompactTextString(m) }
func (*Bytes32) ProtoMessage() {}
func (*Bytes32) Descriptor() ([]byte, []int) {
return fileDescriptor_fc4a30c7a1e70305, []int{0}
}
func (m *Bytes32) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Bytes32.Unmarshal(m, b)
}
func (m *Bytes32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Bytes32.Marshal(b, m, deterministic)
}
func (m *Bytes32) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bytes32.Merge(m, src)
}
func (m *Bytes32) XXX_Size() int {
return xxx_messageInfo_Bytes32.Size(m)
}
func (m *Bytes32) XXX_DiscardUnknown() {
xxx_messageInfo_Bytes32.DiscardUnknown(m)
}
var xxx_messageInfo_Bytes32 proto.InternalMessageInfo
func (m *Bytes32) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type BigInt struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BigInt) Reset() { *m = BigInt{} }
func (m *BigInt) String() string { return proto.CompactTextString(m) }
func (*BigInt) ProtoMessage() {}
func (*BigInt) Descriptor() ([]byte, []int) {
return fileDescriptor_fc4a30c7a1e70305, []int{1}
}
func (m *BigInt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BigInt.Unmarshal(m, b)
}
func (m *BigInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BigInt.Marshal(b, m, deterministic)
}
func (m *BigInt) XXX_Merge(src proto.Message) {
xxx_messageInfo_BigInt.Merge(m, src)
}
func (m *BigInt) XXX_Size() int {
return xxx_messageInfo_BigInt.Size(m)
}
func (m *BigInt) XXX_DiscardUnknown() {
xxx_messageInfo_BigInt.DiscardUnknown(m)
}
var xxx_messageInfo_BigInt proto.InternalMessageInfo
func (m *BigInt) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type Hash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) {
return fileDescriptor_fc4a30c7a1e70305, []int{2}
}
func (m *Hash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hash.Unmarshal(m, b)
}
func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hash.Marshal(b, m, deterministic)
}
func (m *Hash) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hash.Merge(m, src)
}
func (m *Hash) XXX_Size() int {
return xxx_messageInfo_Hash.Size(m)
}
func (m *Hash) XXX_DiscardUnknown() {
xxx_messageInfo_Hash.DiscardUnknown(m)
}
var xxx_messageInfo_Hash proto.InternalMessageInfo
func (m *Hash) GetHash() []byte {
if m != nil {
return m.Hash
}
return nil
}
type Address struct {
Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Address) Reset() { *m = Address{} }
func (m *Address) String() string { return proto.CompactTextString(m) }
func (*Address) ProtoMessage() {}
func (*Address) Descriptor() ([]byte, []int) {
return fileDescriptor_fc4a30c7a1e70305, []int{3}
}
func (m *Address) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Address.Unmarshal(m, b)
}
func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Address.Marshal(b, m, deterministic)
}
func (m *Address) XXX_Merge(src proto.Message) {
xxx_messageInfo_Address.Merge(m, src)
}
func (m *Address) XXX_Size() int {
return xxx_messageInfo_Address.Size(m)
}
func (m *Address) XXX_DiscardUnknown() {
xxx_messageInfo_Address.DiscardUnknown(m)
}
var xxx_messageInfo_Address proto.InternalMessageInfo
func (m *Address) GetAddress() []byte {
if m != nil {
return m.Address
}
return nil
}
func init() {
proto.RegisterType((*Bytes32)(nil), "base.v1.Bytes32")
proto.RegisterType((*BigInt)(nil), "base.v1.BigInt")
proto.RegisterType((*Hash)(nil), "base.v1.Hash")
proto.RegisterType((*Address)(nil), "base.v1.Address")
}
func init() { proto.RegisterFile("base/v1/resource.proto", fileDescriptor_fc4a30c7a1e70305) }
var fileDescriptor_fc4a30c7a1e70305 = []byte{
// 285 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc3, 0x40,
0x10, 0x86, 0x49, 0x2c, 0x8d, 0xac, 0x8a, 0x10, 0x41, 0x4a, 0x50, 0x94, 0x78, 0xf1, 0x62, 0x96,
0xb5, 0xb7, 0x7a, 0xea, 0x5e, 0xd4, 0x83, 0x10, 0x7a, 0x08, 0x45, 0x7a, 0xd9, 0x24, 0xe3, 0x26,
0xd0, 0x74, 0x4a, 0x66, 0x13, 0xe8, 0xbb, 0x78, 0xf2, 0xe8, 0xa3, 0xf8, 0x18, 0x1e, 0x7d, 0x0a,
0xd9, 0x24, 0xf5, 0xe4, 0x69, 0xbf, 0xfd, 0xff, 0x61, 0xf6, 0xff, 0x97, 0x9d, 0xa7, 0x8a, 0x80,
0xb7, 0x82, 0xd7, 0x40, 0xd8, 0xd4, 0x19, 0x44, 0xdb, 0x1a, 0x0d, 0xfa, 0x9e, 0xd5, 0xa3, 0x56,
0x04, 0x57, 0x1a, 0x51, 0xaf, 0x81, 0x77, 0x72, 0xda, 0xbc, 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
// source: nodemanager/v1/request_response.proto
package nodemanagerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/odysseus/odysseus-protocol/gen/proto/go/base/v1"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type WorkerMessage struct {
// Types that are valid to be assigned to Message:
// *WorkerMessage_HeartbeatResponse
// *WorkerMessage_SubmitTaskResult
// *WorkerMessage_StatusResp
Message isWorkerMessage_Message `protobuf_oneof:"message"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkerMessage) Reset() { *m = WorkerMessage{} }
func (m *WorkerMessage) String() string { return proto.CompactTextString(m) }
func (*WorkerMessage) ProtoMessage() {}
func (*WorkerMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{0}
}
func (m *WorkerMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkerMessage.Unmarshal(m, b)
}
func (m *WorkerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkerMessage.Marshal(b, m, deterministic)
}
func (m *WorkerMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkerMessage.Merge(m, src)
}
func (m *WorkerMessage) XXX_Size() int {
return xxx_messageInfo_WorkerMessage.Size(m)
}
func (m *WorkerMessage) XXX_DiscardUnknown() {
xxx_messageInfo_WorkerMessage.DiscardUnknown(m)
}
var xxx_messageInfo_WorkerMessage proto.InternalMessageInfo
type isWorkerMessage_Message interface {
isWorkerMessage_Message()
}
type WorkerMessage_HeartbeatResponse struct {
HeartbeatResponse *HeartbeatResponse `protobuf:"bytes,1,opt,name=heartbeat_response,json=heartbeatResponse,proto3,oneof" json:"heartbeat_response,omitempty"`
}
type WorkerMessage_SubmitTaskResult struct {
SubmitTaskResult *SubmitTaskResult `protobuf:"bytes,2,opt,name=submit_task_result,json=submitTaskResult,proto3,oneof" json:"submit_task_result,omitempty"`
}
type WorkerMessage_StatusResp struct {
StatusResp *StatusResp `protobuf:"bytes,3,opt,name=status_resp,json=statusResp,proto3,oneof" json:"status_resp,omitempty"`
}
func (*WorkerMessage_HeartbeatResponse) isWorkerMessage_Message() {}
func (*WorkerMessage_SubmitTaskResult) isWorkerMessage_Message() {}
func (*WorkerMessage_StatusResp) isWorkerMessage_Message() {}
func (m *WorkerMessage) GetMessage() isWorkerMessage_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *WorkerMessage) GetHeartbeatResponse() *HeartbeatResponse {
if x, ok := m.GetMessage().(*WorkerMessage_HeartbeatResponse); ok {
return x.HeartbeatResponse
}
return nil
}
func (m *WorkerMessage) GetSubmitTaskResult() *SubmitTaskResult {
if x, ok := m.GetMessage().(*WorkerMessage_SubmitTaskResult); ok {
return x.SubmitTaskResult
}
return nil
}
func (m *WorkerMessage) GetStatusResp() *StatusResp {
if x, ok := m.GetMessage().(*WorkerMessage_StatusResp); ok {
return x.StatusResp
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*WorkerMessage_HeartbeatResponse)(nil),
(*WorkerMessage_SubmitTaskResult)(nil),
(*WorkerMessage_StatusResp)(nil),
}
}
type ManagerMessage struct {
// Types that are valid to be assigned to Message:
// *ManagerMessage_HeartbeatRequest
// *ManagerMessage_PushTaskMessage
// *ManagerMessage_ProofTaskResult
Message isManagerMessage_Message `protobuf_oneof:"message"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ManagerMessage) Reset() { *m = ManagerMessage{} }
func (m *ManagerMessage) String() string { return proto.CompactTextString(m) }
func (*ManagerMessage) ProtoMessage() {}
func (*ManagerMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{1}
}
func (m *ManagerMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ManagerMessage.Unmarshal(m, b)
}
func (m *ManagerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ManagerMessage.Marshal(b, m, deterministic)
}
func (m *ManagerMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ManagerMessage.Merge(m, src)
}
func (m *ManagerMessage) XXX_Size() int {
return xxx_messageInfo_ManagerMessage.Size(m)
}
func (m *ManagerMessage) XXX_DiscardUnknown() {
xxx_messageInfo_ManagerMessage.DiscardUnknown(m)
}
var xxx_messageInfo_ManagerMessage proto.InternalMessageInfo
type isManagerMessage_Message interface {
isManagerMessage_Message()
}
type ManagerMessage_HeartbeatRequest struct {
HeartbeatRequest *HeartbeatRequest `protobuf:"bytes,1,opt,name=heartbeat_request,json=heartbeatRequest,proto3,oneof" json:"heartbeat_request,omitempty"`
}
type ManagerMessage_PushTaskMessage struct {
PushTaskMessage *PushTaskMessage `protobuf:"bytes,2,opt,name=push_task_message,json=pushTaskMessage,proto3,oneof" json:"push_task_message,omitempty"`
}
type ManagerMessage_ProofTaskResult struct {
ProofTaskResult *ProofTaskResult `protobuf:"bytes,3,opt,name=proof_task_result,json=proofTaskResult,proto3,oneof" json:"proof_task_result,omitempty"`
}
func (*ManagerMessage_HeartbeatRequest) isManagerMessage_Message() {}
func (*ManagerMessage_PushTaskMessage) isManagerMessage_Message() {}
func (*ManagerMessage_ProofTaskResult) isManagerMessage_Message() {}
func (m *ManagerMessage) GetMessage() isManagerMessage_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *ManagerMessage) GetHeartbeatRequest() *HeartbeatRequest {
if x, ok := m.GetMessage().(*ManagerMessage_HeartbeatRequest); ok {
return x.HeartbeatRequest
}
return nil
}
func (m *ManagerMessage) GetPushTaskMessage() *PushTaskMessage {
if x, ok := m.GetMessage().(*ManagerMessage_PushTaskMessage); ok {
return x.PushTaskMessage
}
return nil
}
func (m *ManagerMessage) GetProofTaskResult() *ProofTaskResult {
if x, ok := m.GetMessage().(*ManagerMessage_ProofTaskResult); ok {
return x.ProofTaskResult
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ManagerMessage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ManagerMessage_HeartbeatRequest)(nil),
(*ManagerMessage_PushTaskMessage)(nil),
(*ManagerMessage_ProofTaskResult)(nil),
}
}
type HeartbeatRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HeartbeatRequest) Reset() { *m = HeartbeatRequest{} }
func (m *HeartbeatRequest) String() string { return proto.CompactTextString(m) }
func (*HeartbeatRequest) ProtoMessage() {}
func (*HeartbeatRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{2}
}
func (m *HeartbeatRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HeartbeatRequest.Unmarshal(m, b)
}
func (m *HeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HeartbeatRequest.Marshal(b, m, deterministic)
}
func (m *HeartbeatRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeartbeatRequest.Merge(m, src)
}
func (m *HeartbeatRequest) XXX_Size() int {
return xxx_messageInfo_HeartbeatRequest.Size(m)
}
func (m *HeartbeatRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HeartbeatRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HeartbeatRequest proto.InternalMessageInfo
type HeartbeatResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HeartbeatResponse) Reset() { *m = HeartbeatResponse{} }
func (m *HeartbeatResponse) String() string { return proto.CompactTextString(m) }
func (*HeartbeatResponse) ProtoMessage() {}
func (*HeartbeatResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{3}
}
func (m *HeartbeatResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HeartbeatResponse.Unmarshal(m, b)
}
func (m *HeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HeartbeatResponse.Marshal(b, m, deterministic)
}
func (m *HeartbeatResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeartbeatResponse.Merge(m, src)
}
func (m *HeartbeatResponse) XXX_Size() int {
return xxx_messageInfo_HeartbeatResponse.Size(m)
}
func (m *HeartbeatResponse) XXX_DiscardUnknown() {
xxx_messageInfo_HeartbeatResponse.DiscardUnknown(m)
}
var xxx_messageInfo_HeartbeatResponse proto.InternalMessageInfo
type StatusResp struct {
RemainPower uint64 `protobuf:"varint,1,opt,name=remain_power,json=remainPower,proto3" json:"remain_power,omitempty"`
RemainDevice uint64 `protobuf:"varint,2,opt,name=remain_device,json=remainDevice,proto3" json:"remain_device,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatusResp) Reset() { *m = StatusResp{} }
func (m *StatusResp) String() string { return proto.CompactTextString(m) }
func (*StatusResp) ProtoMessage() {}
func (*StatusResp) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{4}
}
func (m *StatusResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatusResp.Unmarshal(m, b)
}
func (m *StatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatusResp.Marshal(b, m, deterministic)
}
func (m *StatusResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatusResp.Merge(m, src)
}
func (m *StatusResp) XXX_Size() int {
return xxx_messageInfo_StatusResp.Size(m)
}
func (m *StatusResp) XXX_DiscardUnknown() {
xxx_messageInfo_StatusResp.DiscardUnknown(m)
}
var xxx_messageInfo_StatusResp proto.InternalMessageInfo
func (m *StatusResp) GetRemainPower() uint64 {
if m != nil {
return m.RemainPower
}
return 0
}
func (m *StatusResp) GetRemainDevice() uint64 {
if m != nil {
return m.RemainDevice
}
return 0
}
type PushTaskMessage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PushTaskMessage) Reset() { *m = PushTaskMessage{} }
func (m *PushTaskMessage) String() string { return proto.CompactTextString(m) }
func (*PushTaskMessage) ProtoMessage() {}
func (*PushTaskMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{5}
}
func (m *PushTaskMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PushTaskMessage.Unmarshal(m, b)
}
func (m *PushTaskMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PushTaskMessage.Marshal(b, m, deterministic)
}
func (m *PushTaskMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushTaskMessage.Merge(m, src)
}
func (m *PushTaskMessage) XXX_Size() int {
return xxx_messageInfo_PushTaskMessage.Size(m)
}
func (m *PushTaskMessage) XXX_DiscardUnknown() {
xxx_messageInfo_PushTaskMessage.DiscardUnknown(m)
}
var xxx_messageInfo_PushTaskMessage proto.InternalMessageInfo
type SubmitTaskResult struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SubmitTaskResult) Reset() { *m = SubmitTaskResult{} }
func (m *SubmitTaskResult) String() string { return proto.CompactTextString(m) }
func (*SubmitTaskResult) ProtoMessage() {}
func (*SubmitTaskResult) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{6}
}
func (m *SubmitTaskResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubmitTaskResult.Unmarshal(m, b)
}
func (m *SubmitTaskResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubmitTaskResult.Marshal(b, m, deterministic)
}
func (m *SubmitTaskResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubmitTaskResult.Merge(m, src)
}
func (m *SubmitTaskResult) XXX_Size() int {
return xxx_messageInfo_SubmitTaskResult.Size(m)
}
func (m *SubmitTaskResult) XXX_DiscardUnknown() {
xxx_messageInfo_SubmitTaskResult.DiscardUnknown(m)
}
var xxx_messageInfo_SubmitTaskResult proto.InternalMessageInfo
type ProofTaskResult struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProofTaskResult) Reset() { *m = ProofTaskResult{} }
func (m *ProofTaskResult) String() string { return proto.CompactTextString(m) }
func (*ProofTaskResult) ProtoMessage() {}
func (*ProofTaskResult) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{7}
}
func (m *ProofTaskResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProofTaskResult.Unmarshal(m, b)
}
func (m *ProofTaskResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProofTaskResult.Marshal(b, m, deterministic)
}
func (m *ProofTaskResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProofTaskResult.Merge(m, src)
}
func (m *ProofTaskResult) XXX_Size() int {
return xxx_messageInfo_ProofTaskResult.Size(m)
}
func (m *ProofTaskResult) XXX_DiscardUnknown() {
xxx_messageInfo_ProofTaskResult.DiscardUnknown(m)
}
var xxx_messageInfo_ProofTaskResult proto.InternalMessageInfo
type DispatchTaskRequest struct {
TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"`
TaskData []byte `protobuf:"bytes,2,opt,name=task_data,json=taskData,proto3" json:"task_data,omitempty"`
Worker string `protobuf:"bytes,3,opt,name=worker,proto3" json:"worker,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DispatchTaskRequest) Reset() { *m = DispatchTaskRequest{} }
func (m *DispatchTaskRequest) String() string { return proto.CompactTextString(m) }
func (*DispatchTaskRequest) ProtoMessage() {}
func (*DispatchTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{8}
}
func (m *DispatchTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DispatchTaskRequest.Unmarshal(m, b)
}
func (m *DispatchTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DispatchTaskRequest.Marshal(b, m, deterministic)
}
func (m *DispatchTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DispatchTaskRequest.Merge(m, src)
}
func (m *DispatchTaskRequest) XXX_Size() int {
return xxx_messageInfo_DispatchTaskRequest.Size(m)
}
func (m *DispatchTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DispatchTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DispatchTaskRequest proto.InternalMessageInfo
func (m *DispatchTaskRequest) GetTaskType() string {
if m != nil {
return m.TaskType
}
return ""
}
func (m *DispatchTaskRequest) GetTaskData() []byte {
if m != nil {
return m.TaskData
}
return nil
}
func (m *DispatchTaskRequest) GetWorker() string {
if m != nil {
return m.Worker
}
return ""
}
type DispatchTaskResponse struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DispatchTaskResponse) Reset() { *m = DispatchTaskResponse{} }
func (m *DispatchTaskResponse) String() string { return proto.CompactTextString(m) }
func (*DispatchTaskResponse) ProtoMessage() {}
func (*DispatchTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{9}
}
func (m *DispatchTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DispatchTaskResponse.Unmarshal(m, b)
}
func (m *DispatchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DispatchTaskResponse.Marshal(b, m, deterministic)
}
func (m *DispatchTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DispatchTaskResponse.Merge(m, src)
}
func (m *DispatchTaskResponse) XXX_Size() int {
return xxx_messageInfo_DispatchTaskResponse.Size(m)
}
func (m *DispatchTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DispatchTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DispatchTaskResponse proto.InternalMessageInfo
func (m *DispatchTaskResponse) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
func (m *DispatchTaskResponse) GetWorker() string {
if m != nil {
return m.Worker
}
return ""
}
type DeviceInfo struct {
// device info for gpu
DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
DeviceType string `protobuf:"bytes,2,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
DevicePower uint64 `protobuf:"varint,3,opt,name=device_power,json=devicePower,proto3" json:"device_power,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceInfo) Reset() { *m = DeviceInfo{} }
func (m *DeviceInfo) String() string { return proto.CompactTextString(m) }
func (*DeviceInfo) ProtoMessage() {}
func (*DeviceInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{10}
}
func (m *DeviceInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceInfo.Unmarshal(m, b)
}
func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceInfo.Marshal(b, m, deterministic)
}
func (m *DeviceInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceInfo.Merge(m, src)
}
func (m *DeviceInfo) XXX_Size() int {
return xxx_messageInfo_DeviceInfo.Size(m)
}
func (m *DeviceInfo) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceInfo.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceInfo proto.InternalMessageInfo
func (m *DeviceInfo) GetDeviceName() string {
if m != nil {
return m.DeviceName
}
return ""
}
func (m *DeviceInfo) GetDeviceType() string {
if m != nil {
return m.DeviceType
}
return ""
}
func (m *DeviceInfo) GetDevicePower() uint64 {
if m != nil {
return m.DevicePower
}
return 0
}
type WorkerContent struct {
WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"`
WorkerPubkey string `protobuf:"bytes,2,opt,name=worker_pubkey,json=workerPubkey,proto3" json:"worker_pubkey,omitempty"`
Devices []*DeviceInfo `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkerContent) Reset() { *m = WorkerContent{} }
func (m *WorkerContent) String() string { return proto.CompactTextString(m) }
func (*WorkerContent) ProtoMessage() {}
func (*WorkerContent) Descriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{11}
}
func (m *WorkerContent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkerContent.Unmarshal(m, b)
}
func (m *WorkerContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkerContent.Marshal(b, m, deterministic)
}
func (m *WorkerContent) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkerContent.Merge(m, src)
}
func (m *WorkerContent) XXX_Size() int {
return xxx_messageInfo_WorkerContent.Size(m)
}
func (m *WorkerContent) XXX_DiscardUnknown() {
xxx_messageInfo_WorkerContent.DiscardUnknown(m)
}
var xxx_messageInfo_WorkerContent proto.InternalMessageInfo
func (m *WorkerContent) GetWorkerId() string {
if m != nil {
return m.WorkerId
}
return ""
}
func (m *WorkerContent) GetWorkerPubkey() string {
if m != nil {
return m.WorkerPubkey
}
return ""
}
func (m *WorkerContent) GetDevices() []*DeviceInfo {
if m != nil {
return m.Devices
}
return nil
}
func init() {
proto.RegisterType((*WorkerMessage)(nil), "nodemanager.v1.WorkerMessage")
proto.RegisterType((*ManagerMessage)(nil), "nodemanager.v1.ManagerMessage")
proto.RegisterType((*HeartbeatRequest)(nil), "nodemanager.v1.HeartbeatRequest")
proto.RegisterType((*HeartbeatResponse)(nil), "nodemanager.v1.HeartbeatResponse")
proto.RegisterType((*StatusResp)(nil), "nodemanager.v1.StatusResp")
proto.RegisterType((*PushTaskMessage)(nil), "nodemanager.v1.PushTaskMessage")
proto.RegisterType((*SubmitTaskResult)(nil), "nodemanager.v1.SubmitTaskResult")
proto.RegisterType((*ProofTaskResult)(nil), "nodemanager.v1.ProofTaskResult")
proto.RegisterType((*DispatchTaskRequest)(nil), "nodemanager.v1.DispatchTaskRequest")
proto.RegisterType((*DispatchTaskResponse)(nil), "nodemanager.v1.DispatchTaskResponse")
proto.RegisterType((*DeviceInfo)(nil), "nodemanager.v1.DeviceInfo")
proto.RegisterType((*WorkerContent)(nil), "nodemanager.v1.WorkerContent")
}
func init() {
proto.RegisterFile("nodemanager/v1/request_response.proto", fileDescriptor_810ae261dc8e2975)
}
var fileDescriptor_810ae261dc8e2975 = []byte{
// 659 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xd1, 0x6e, 0xd3, 0x30,
0x14, 0x6d, 0xd3, 0x69, 0x5b, 0x6f, 0xbb, 0x75, 0xf5, 0x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d9, 0x88, 0xdf, 0xb5, 0xc7, 0x2c, 0x6c, 0xe3, 0xa2, 0x3d, 0xe6,
0xed, 0xec, 0x3b, 0xf9, 0x36, 0xb5, 0x9c, 0x75, 0xbe, 0x5a, 0xa5, 0xf3, 0xeb, 0xeb, 0x6f, 0xd6,
0xf6, 0x79, 0xaa, 0xfe, 0x55, 0xe7, 0x7b, 0x06, 0xb8, 0xb9, 0xea, 0xfc, 0xb4, 0x0e, 0xb2, 0xc0,
0xcd, 0xa9, 0xd3, 0xed, 0x33, 0x49, 0xd5, 0x91, 0xf9, 0x65, 0xd5, 0x52, 0x9b, 0xc7, 0xc7, 0x57,
0x9d, 0xe1, 0x3a, 0x56, 0x7f, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0xda, 0x7b, 0xc2, 0xc6, 0xa5,
0x05, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: nodemanager/v1/resource.proto
package nodemanagerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("nodemanager/v1/resource.proto", fileDescriptor_462e4441103de524) }
var fileDescriptor_462e4441103de524 = []byte{
// 181 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0xcb, 0x4f, 0x49,
0xcd, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f,
0x2d, 0x4a, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x43, 0x92, 0xd6, 0x2b, 0x33,
0x74, 0x3a, 0xcb, 0xc8, 0x25, 0x94, 0x9c, 0x9f, 0xab, 0x87, 0x26, 0xcc, 0x1b, 0x04, 0xd5, 0x16,
0x00, 0xd2, 0x15, 0xc0, 0x18, 0xe5, 0x9f, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f,
0xab, 0x9f, 0x9f, 0x52, 0x59, 0x5c, 0x9c, 0x5a, 0x5a, 0x0c, 0x67, 0xe8, 0x82, 0xcd, 0x4e, 0xce,
0xcf, 0xd1, 0x4f, 0x4f, 0xcd, 0xd3, 0x07, 0x73, 0xf4, 0xd3, 0xf3, 0xf5, 0x51, 0x5d, 0x62, 0x8d,
0xc4, 0x2d, 0x33, 0x5c, 0xc4, 0xc4, 0xec, 0x17, 0x11, 0xb1, 0x8a, 0x89, 0xcf, 0x0f, 0xc9, 0xe2,
0x30, 0xc3, 0x53, 0x28, 0x02, 0x31, 0x61, 0x86, 0x8f, 0x98, 0xa4, 0x50, 0x05, 0x62, 0xdc, 0x03,
0x9c, 0x7c, 0x53, 0x4b, 0x12, 0x53, 0x12, 0x4b, 0x12, 0x5f, 0x31, 0xf1, 0x23, 0x49, 0x5a, 0x59,
0x85, 0x19, 0x26, 0xb1, 0x81, 0x6d, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x5d, 0x07,
0x12, 0x07, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: nodemanager/v1/service.proto
package nodemanagerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("nodemanager/v1/service.proto", fileDescriptor_085790cc5673c432) }
var fileDescriptor_085790cc5673c432 = []byte{
// 296 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4a, 0xc4, 0x40,
0x10, 0x86, 0x2f, 0x11, 0x2c, 0xc2, 0x11, 0x61, 0xcb, 0xa0, 0x16, 0xa7, 0x82, 0x8d, 0x59, 0x57,
0xbb, 0xb3, 0x0b, 0x82, 0x55, 0x62, 0x38, 0x35, 0x1e, 0x7a, 0x20, 0x7b, 0xc9, 0xb0, 0x17, 0xce,
0x64, 0xe3, 0xce, 0x26, 0xe0, 0xeb, 0x58, 0xfa, 0x24, 0x22, 0x3e, 0x85, 0xa5, 0x4f, 0x21, 0x26,
0x41, 0x92, 0x14, 0xd7, 0xed, 0xcc, 0xf7, 0xcf, 0xfc, 0xfb, 0x8f, 0xb5, 0x9b, 0xcb, 0x04, 0x32,
0x9e, 0x73, 0x01, 0x8a, 0x56, 0x8c, 0x22, 0xa8, 0x2a, 0x8d, 0xc1, 0x2d, 0x94, 0xd4, 0x92, 0xd8,
0x1d, 0xea, 0x56, 0xcc, 0x39, 0x1a, 0xa8, 0x15, 0xbc, 0x94, 0x80, 0xfa, 0x49, 0x01, 0x16, 0x32,
0xc7, 0x76, 0xec, 0xec, 0xc3, 0xb0, 0x48, 0x20, 0x13, 0xf0, 0x1b, 0xe5, 0x4d, 0xb3, 0x93, 0xdc,
0x59, 0xf6, 0x0c, 0x44, 0x8a, 0x1a, 0xd4, 0xbd, 0x54, 0x6b, 0x50, 0x64, 0xcf, 0xed, 0x1b, 0xb8,
0x4d, 0xdf, 0x07, 0x44, 0x2e, 0xc0, 0xd9, 0x1f, 0xe2, 0x76, 0x61, 0xcb, 0x27, 0xa3, 0x63, 0xe3,
0xd4, 0x20, 0x8f, 0xd6, 0xf8, 0x32, 0xc5, 0x82, 0xeb, 0x78, 0x75, 0xcb, 0x71, 0x4d, 0x0e, 0x86,
0x53, 0x5d, 0x3a, 0x6b, 0x7e, 0xec, 0x1c, 0x6e, 0x16, 0x35, 0x71, 0x26, 0x23, 0xef, 0xcb, 0xb0,
0x48, 0x2c, 0xb3, 0x81, 0xda, 0x1b, 0xb7, 0x99, 0xc2, 0xbf, 0xbc, 0xa1, 0xf1, 0x70, 0x2d, 0x52,
0xbd, 0x2a, 0x97, 0x6e, 0x2c, 0x33, 0x2a, 0x93, 0x57, 0x44, 0x28, 0xf1, 0xff, 0x71, 0x52, 0x5f,
0x25, 0x96, 0xcf, 0x54, 0x40, 0x4e, 0xeb, 0x82, 0x0a, 0x49, 0xfb, 0xb7, 0xbc, 0xe8, 0x94, 0x15,
0x7b, 0x33, 0xb7, 0x82, 0xf9, 0xfc, 0xdd, 0xb4, 0x83, 0x8e, 0x6f, 0xc4, 0x3e, 0x7b, 0x8d, 0x45,
0xc4, 0xbe, 0x4d, 0xa7, 0xdf, 0x58, 0x5c, 0x85, 0x9e, 0x0f, 0x9a, 0x27, 0x5c, 0xf3, 0x1f, 0x73,
0xa7, 0x03, 0xa7, 0xd3, 0x88, 0x2d, 0xb7, 0x6b, 0xf7, 0xf3, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff,
0xb9, 0x2f, 0xc2, 0xe0, 0xf7, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: nodemanager/v1/service.proto
package nodemanagerv1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// NodeManagerServiceClient is the client API for NodeManagerService 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 NodeManagerServiceClient interface {
RegisterWorker(ctx context.Context, opts ...grpc.CallOption) (NodeManagerService_RegisterWorkerClient, error)
DispatchTask(ctx context.Context, in *DispatchTaskRequest, opts ...grpc.CallOption) (*DispatchTaskResponse, error)
}
type nodeManagerServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNodeManagerServiceClient(cc grpc.ClientConnInterface) NodeManagerServiceClient {
return &nodeManagerServiceClient{cc}
}
func (c *nodeManagerServiceClient) RegisterWorker(ctx context.Context, opts ...grpc.CallOption) (NodeManagerService_RegisterWorkerClient, error) {
stream, err := c.cc.NewStream(ctx, &NodeManagerService_ServiceDesc.Streams[0], "/nodemanager.v1.NodeManagerService/RegisterWorker", opts...)
if err != nil {
return nil, err
}
x := &nodeManagerServiceRegisterWorkerClient{stream}
return x, nil
}
type NodeManagerService_RegisterWorkerClient interface {
Send(*WorkerMessage) error
Recv() (*ManagerMessage, error)
grpc.ClientStream
}
type nodeManagerServiceRegisterWorkerClient struct {
grpc.ClientStream
}
func (x *nodeManagerServiceRegisterWorkerClient) Send(m *WorkerMessage) error {
return x.ClientStream.SendMsg(m)
}
func (x *nodeManagerServiceRegisterWorkerClient) Recv() (*ManagerMessage, error) {
m := new(ManagerMessage)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *nodeManagerServiceClient) DispatchTask(ctx context.Context, in *DispatchTaskRequest, opts ...grpc.CallOption) (*DispatchTaskResponse, error) {
out := new(DispatchTaskResponse)
err := c.cc.Invoke(ctx, "/nodemanager.v1.NodeManagerService/DispatchTask", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NodeManagerServiceServer is the server API for NodeManagerService service.
// All implementations must embed UnimplementedNodeManagerServiceServer
// for forward compatibility
type NodeManagerServiceServer interface {
RegisterWorker(NodeManagerService_RegisterWorkerServer) error
DispatchTask(context.Context, *DispatchTaskRequest) (*DispatchTaskResponse, error)
mustEmbedUnimplementedNodeManagerServiceServer()
}
// UnimplementedNodeManagerServiceServer must be embedded to have forward compatible implementations.
type UnimplementedNodeManagerServiceServer struct {
}
func (UnimplementedNodeManagerServiceServer) RegisterWorker(NodeManagerService_RegisterWorkerServer) error {
return status.Errorf(codes.Unimplemented, "method RegisterWorker not implemented")
}
func (UnimplementedNodeManagerServiceServer) DispatchTask(context.Context, *DispatchTaskRequest) (*DispatchTaskResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DispatchTask not implemented")
}
func (UnimplementedNodeManagerServiceServer) mustEmbedUnimplementedNodeManagerServiceServer() {}
// UnsafeNodeManagerServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to NodeManagerServiceServer will
// result in compilation errors.
type UnsafeNodeManagerServiceServer interface {
mustEmbedUnimplementedNodeManagerServiceServer()
}
func RegisterNodeManagerServiceServer(s grpc.ServiceRegistrar, srv NodeManagerServiceServer) {
s.RegisterService(&NodeManagerService_ServiceDesc, srv)
}
func _NodeManagerService_RegisterWorker_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(NodeManagerServiceServer).RegisterWorker(&nodeManagerServiceRegisterWorkerServer{stream})
}
type NodeManagerService_RegisterWorkerServer interface {
Send(*ManagerMessage) error
Recv() (*WorkerMessage, error)
grpc.ServerStream
}
type nodeManagerServiceRegisterWorkerServer struct {
grpc.ServerStream
}
func (x *nodeManagerServiceRegisterWorkerServer) Send(m *ManagerMessage) error {
return x.ServerStream.SendMsg(m)
}
func (x *nodeManagerServiceRegisterWorkerServer) Recv() (*WorkerMessage, error) {
m := new(WorkerMessage)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _NodeManagerService_DispatchTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DispatchTaskRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeManagerServiceServer).DispatchTask(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/nodemanager.v1.NodeManagerService/DispatchTask",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeManagerServiceServer).DispatchTask(ctx, req.(*DispatchTaskRequest))
}
return interceptor(ctx, in, info, handler)
}
// NodeManagerService_ServiceDesc is the grpc.ServiceDesc for NodeManagerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var NodeManagerService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "nodemanager.v1.NodeManagerService",
HandlerType: (*NodeManagerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "DispatchTask",
Handler: _NodeManagerService_DispatchTask_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "RegisterWorker",
Handler: _NodeManagerService_RegisterWorker_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "nodemanager/v1/service.proto",
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: scheduler/v1/request_response.proto
package schedulerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
_ "google.golang.org/protobuf/types/known/fieldmaskpb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("scheduler/v1/request_response.proto", fileDescriptor_c6075862f978c335)
}
var fileDescriptor_c6075862f978c335 = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0x4e, 0xce, 0x48,
0x4d, 0x29, 0xcd, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4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0x7c,
0x53, 0x4b, 0x12, 0x53, 0x12, 0x4b, 0x12, 0x5f, 0x31, 0xf1, 0xc2, 0xa5, 0xac, 0xac, 0xc2, 0x0c,
0x93, 0xd8, 0xc0, 0x36, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x95, 0x9b, 0x82, 0x64,
0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: scheduler/v1/resource.proto
package schedulerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/odysseus/odysseus-protocol/gen/proto/go/base/v1"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("scheduler/v1/resource.proto", fileDescriptor_e8c3445506ce0bc0) }
var fileDescriptor_e8c3445506ce0bc0 = []byte{
// 188 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x4e, 0xce, 0x48,
0x4d, 0x29, 0xcd, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a,
0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0x4b, 0xea, 0x95, 0x19, 0x4a, 0x89,
0x25, 0x25, 0x16, 0xa7, 0x62, 0xaa, 0x72, 0xda, 0xcf, 0xc8, 0x25, 0x90, 0x9c, 0x9f, 0xab, 0x87,
0xac, 0xd8, 0x89, 0x37, 0x08, 0xaa, 0x28, 0x00, 0xa4, 0x26, 0x80, 0x31, 0xca, 0x3b, 0x3d, 0xb3,
0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x3f, 0xa5, 0xb2, 0xb8, 0x38, 0xb5, 0xb4,
0x18, 0xce, 0xd0, 0x05, 0x9b, 0x94, 0x9c, 0x9f, 0xa3, 0x9f, 0x9e, 0x9a, 0xa7, 0x0f, 0xe6, 0xe8,
0xa7, 0xe7, 0xeb, 0x23, 0xbb, 0xcd, 0x1a, 0xce, 0x29, 0x33, 0x5c, 0xc4, 0xc4, 0x1c, 0x1c, 0x11,
0xb1, 0x8a, 0x89, 0x27, 0x18, 0x6e, 0x65, 0x98, 0xe1, 0x29, 0x24, 0x6e, 0x4c, 0x98, 0xe1, 0x23,
0x26, 0x09, 0x64, 0x6e, 0x8c, 0x7b, 0x80, 0x93, 0x6f, 0x6a, 0x49, 0x62, 0x4a, 0x62, 0x49, 0xe2,
0x2b, 0x26, 0x5e, 0xb8, 0x94, 0x95, 0x55, 0x98, 0x61, 0x12, 0x1b, 0xd8, 0x46, 0x63, 0x40, 0x00,
0x00, 0x00, 0xff, 0xff, 0x36, 0x6a, 0x4c, 0x58, 0x0d, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: scheduler/v1/service.proto
package schedulerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "google.golang.org/protobuf/types/known/emptypb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("scheduler/v1/service.proto", fileDescriptor_ae09295ad7002c58) }
var fileDescriptor_ae09295ad7002c58 = []byte{
// 230 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff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0xc0, 0xc9, 0x37, 0xb5, 0x24, 0x31, 0x25, 0xb1, 0x24, 0xf1, 0x15, 0x13, 0x2f, 0x5c, 0xca,
0xca, 0x2a, 0xcc, 0x30, 0x89, 0x0d, 0x6c, 0xa3, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x48,
0x03, 0x2b, 0x49, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: scheduler/v1/service.proto
package schedulerv1
import (
grpc "google.golang.org/grpc"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// SchedulerServiceClient is the client API for SchedulerService 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 SchedulerServiceClient interface {
}
type schedulerServiceClient struct {
cc grpc.ClientConnInterface
}
func NewSchedulerServiceClient(cc grpc.ClientConnInterface) SchedulerServiceClient {
return &schedulerServiceClient{cc}
}
// SchedulerServiceServer is the server API for SchedulerService service.
// All implementations must embed UnimplementedSchedulerServiceServer
// for forward compatibility
type SchedulerServiceServer interface {
mustEmbedUnimplementedSchedulerServiceServer()
}
// UnimplementedSchedulerServiceServer must be embedded to have forward compatible implementations.
type UnimplementedSchedulerServiceServer struct {
}
func (UnimplementedSchedulerServiceServer) mustEmbedUnimplementedSchedulerServiceServer() {}
// UnsafeSchedulerServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SchedulerServiceServer will
// result in compilation errors.
type UnsafeSchedulerServiceServer interface {
mustEmbedUnimplementedSchedulerServiceServer()
}
func RegisterSchedulerServiceServer(s grpc.ServiceRegistrar, srv SchedulerServiceServer) {
s.RegisterService(&SchedulerService_ServiceDesc, srv)
}
// SchedulerService_ServiceDesc is the grpc.ServiceDesc for SchedulerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SchedulerService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "scheduler.v1.SchedulerService",
HandlerType: (*SchedulerServiceServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{},
Metadata: "scheduler/v1/service.proto",
}
module github.com/odysseus/odysseus-protocol
go 1.18
require (
github.com/gogo/protobuf v1.3.2
google.golang.org/grpc v1.60.1
google.golang.org/protobuf v1.32.0
)
require (
github.com/golang/protobuf v1.5.3 // indirect
golang.org/x/net v0.16.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
)
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.16.0 h1:7eBu7KsSvFDtSXUIDbh3aqlK4DPsZ1rByC8PFfBThos=
golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 h1:6GQBEOdGkX6MMTLT9V+TjtIRZCw9VPD5Z+yHY9wMgS0=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY=
google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU=
google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
package main
func main() {
println("Hello, World!")
}
\ No newline at end of file
...@@ -29,7 +29,7 @@ message HeartbeatResponse { ...@@ -29,7 +29,7 @@ message HeartbeatResponse {
message StatusResp { message StatusResp {
uint64 remain_power = 1; uint64 remain_power = 1;
uint remain_device = 2; // 剩余 uint64 remain_device = 2; // 剩余
} }
message PushTaskMessage { message PushTaskMessage {
...@@ -48,6 +48,11 @@ message DispatchTaskRequest { ...@@ -48,6 +48,11 @@ message DispatchTaskRequest {
string worker = 3; string worker = 3;
} }
message DispatchTaskResponse {
string task_id = 1;
string worker = 2;
}
message DeviceInfo { message DeviceInfo {
// device info for gpu // device info for gpu
string device_name = 1; string device_name = 1;
......
...@@ -6,5 +6,5 @@ import "nodemanager/v1/request_response.proto"; ...@@ -6,5 +6,5 @@ import "nodemanager/v1/request_response.proto";
service NodeManagerService { service NodeManagerService {
rpc RegisterWorker(stream WorkerMessage) returns (stream ManagerMessage) {} rpc RegisterWorker(stream WorkerMessage) returns (stream ManagerMessage) {}
rpc DispatchTask(DispatchTaskRequest) returns () {} rpc DispatchTask(DispatchTaskRequest) returns (DispatchTaskResponse) {}
} }
...@@ -4,14 +4,6 @@ package scheduler.v1; ...@@ -4,14 +4,6 @@ package scheduler.v1;
import "google/protobuf/empty.proto"; import "google/protobuf/empty.proto";
import "scheduler/v1/request_response.proto"; import "scheduler/v1/request_response.proto";
import "scheduler/v1/web3.proto";
import "base/v1/eth_blocks.proto";
service SchedulerService { service SchedulerService {
// block info service
rpc BlockNumber(google.protobuf.Empty) returns (HeightResponse) {};
rpc BlockTransactionCountByHash(BlockTransactionCountByHashRequest) returns (BlockTransactionCountByHashResponse) {};
// subscribe service
rpc SubscribeNewTx(google.protobuf.Empty) returns (stream SubscribeNewTxResponse) {}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment