specifiable hardware device types (cpu, gpu)
parent
00f2dec105
commit
1b40283f69
|
@ -263,6 +263,16 @@ paths:
|
|||
in: query
|
||||
required: false
|
||||
type: boolean
|
||||
- name: pagination.reverse
|
||||
description: >-
|
||||
reverse is set to true if results are to be returned in the
|
||||
descending order.
|
||||
|
||||
|
||||
Since: cosmos-sdk 0.43
|
||||
in: query
|
||||
required: false
|
||||
type: boolean
|
||||
tags:
|
||||
- Query
|
||||
'/colinearcore/colinearcore/auction/{index}':
|
||||
|
|
1
go.mod
1
go.mod
|
@ -88,6 +88,7 @@ require (
|
|||
github.com/gorilla/handlers v1.5.1 // indirect
|
||||
github.com/gorilla/websocket v1.5.0 // indirect
|
||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
|
||||
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
|
||||
github.com/gtank/merlin v0.1.1 // indirect
|
||||
github.com/gtank/ristretto255 v0.1.2 // indirect
|
||||
|
|
2
go.sum
2
go.sum
|
@ -734,6 +734,8 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t
|
|||
github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 h1:lLT7ZLSzGLI08vc9cpd+tYmNWjdKDqyr/2L+f6U12Fk=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w=
|
||||
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU=
|
||||
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0=
|
||||
github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s=
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
syntax = "proto3";
|
||||
package colinear.colinearcore;
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
enum GpuModel {
|
||||
RTX_2080 = 0;
|
||||
RTX_2080_TI = 1;
|
||||
RTX_3070 = 2;
|
||||
RTX_3070_TI = 3;
|
||||
RTX_3080 = 4;
|
||||
RTX_3080_TI = 5;
|
||||
}
|
||||
|
||||
enum CpuArchitecture {
|
||||
ANY = 0;
|
||||
INTEL = 1;
|
||||
AMD = 2;
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: colinearcore/hardware.proto
|
||||
|
||||
package types
|
||||
|
||||
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
|
||||
|
||||
type GpuModel int32
|
||||
|
||||
const (
|
||||
GpuModel_RTX_2080 GpuModel = 0
|
||||
GpuModel_RTX_2080_TI GpuModel = 1
|
||||
GpuModel_RTX_3070 GpuModel = 2
|
||||
GpuModel_RTX_3070_TI GpuModel = 3
|
||||
GpuModel_RTX_3080 GpuModel = 4
|
||||
GpuModel_RTX_3080_TI GpuModel = 5
|
||||
)
|
||||
|
||||
var GpuModel_name = map[int32]string{
|
||||
0: "RTX_2080",
|
||||
1: "RTX_2080_TI",
|
||||
2: "RTX_3070",
|
||||
3: "RTX_3070_TI",
|
||||
4: "RTX_3080",
|
||||
5: "RTX_3080_TI",
|
||||
}
|
||||
|
||||
var GpuModel_value = map[string]int32{
|
||||
"RTX_2080": 0,
|
||||
"RTX_2080_TI": 1,
|
||||
"RTX_3070": 2,
|
||||
"RTX_3070_TI": 3,
|
||||
"RTX_3080": 4,
|
||||
"RTX_3080_TI": 5,
|
||||
}
|
||||
|
||||
func (x GpuModel) String() string {
|
||||
return proto.EnumName(GpuModel_name, int32(x))
|
||||
}
|
||||
|
||||
func (GpuModel) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b5d8e515bcf89b12, []int{0}
|
||||
}
|
||||
|
||||
type CpuArchitecture int32
|
||||
|
||||
const (
|
||||
CpuArchitecture_ANY CpuArchitecture = 0
|
||||
CpuArchitecture_INTEL CpuArchitecture = 1
|
||||
CpuArchitecture_AMD CpuArchitecture = 2
|
||||
)
|
||||
|
||||
var CpuArchitecture_name = map[int32]string{
|
||||
0: "ANY",
|
||||
1: "INTEL",
|
||||
2: "AMD",
|
||||
}
|
||||
|
||||
var CpuArchitecture_value = map[string]int32{
|
||||
"ANY": 0,
|
||||
"INTEL": 1,
|
||||
"AMD": 2,
|
||||
}
|
||||
|
||||
func (x CpuArchitecture) String() string {
|
||||
return proto.EnumName(CpuArchitecture_name, int32(x))
|
||||
}
|
||||
|
||||
func (CpuArchitecture) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b5d8e515bcf89b12, []int{1}
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("colinear.colinearcore.GpuModel", GpuModel_name, GpuModel_value)
|
||||
proto.RegisterEnum("colinear.colinearcore.CpuArchitecture", CpuArchitecture_name, CpuArchitecture_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("colinearcore/hardware.proto", fileDescriptor_b5d8e515bcf89b12) }
|
||||
|
||||
var fileDescriptor_b5d8e515bcf89b12 = []byte{
|
||||
// 214 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xce, 0xcf, 0xc9,
|
||||
0xcc, 0x4b, 0x4d, 0x2c, 0x4a, 0xce, 0x2f, 0x4a, 0xd5, 0xcf, 0x48, 0x2c, 0x4a, 0x29, 0x4f, 0x2c,
|
||||
0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x85, 0x49, 0xea, 0x21, 0xab, 0xd2, 0x4a,
|
||||
0xe7, 0xe2, 0x70, 0x2f, 0x28, 0xf5, 0xcd, 0x4f, 0x49, 0xcd, 0x11, 0xe2, 0xe1, 0xe2, 0x08, 0x0a,
|
||||
0x89, 0x88, 0x37, 0x32, 0xb0, 0x30, 0x10, 0x60, 0x10, 0xe2, 0xe7, 0xe2, 0x86, 0xf1, 0xe2, 0x43,
|
||||
0x3c, 0x05, 0x18, 0x61, 0xd2, 0xc6, 0x06, 0xe6, 0x06, 0x02, 0x4c, 0x30, 0x69, 0x10, 0x0f, 0x24,
|
||||
0xcd, 0x8c, 0x90, 0xb6, 0x30, 0x10, 0x60, 0x41, 0x48, 0x43, 0x74, 0xb3, 0x6a, 0xe9, 0x71, 0xf1,
|
||||
0x3b, 0x17, 0x94, 0x3a, 0x16, 0x25, 0x67, 0x64, 0x96, 0xa4, 0x26, 0x97, 0x94, 0x16, 0xa5, 0x0a,
|
||||
0xb1, 0x73, 0x31, 0x3b, 0xfa, 0x45, 0x0a, 0x30, 0x08, 0x71, 0x72, 0xb1, 0x7a, 0xfa, 0x85, 0xb8,
|
||||
0xfa, 0x08, 0x30, 0x82, 0xc5, 0x7c, 0x5d, 0x04, 0x98, 0x9c, 0xcc, 0x4f, 0x3c, 0x92, 0x63, 0xbc,
|
||||
0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63,
|
||||
0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x16, 0xe6, 0x01, 0xfd, 0x0a, 0x7d, 0x14, 0x1f, 0x97, 0x54,
|
||||
0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xfd, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x59,
|
||||
0x42, 0x58, 0x0e, 0x01, 0x00, 0x00,
|
||||
}
|
Loading…
Reference in New Issue