types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name.
	ModuleName = "compliancetest"

	// StoreKey defines the primary module store key.
	StoreKey = "xxx_" + ModuleName // FIXME compliancetests conflicts with compliance as a key prefix

	// RouterKey is the message route for slashing.
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key.
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key.
	MemStoreKey = "xxx_" + "mem_compliancetest" // FIXME issue 99: the same is likely here too
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index.

View Source
const (
	// TestingResultsKeyPrefix is the prefix to retrieve all TestingResults.
	TestingResultsKeyPrefix = "TestingResults/value/"
)
View Source
const TypeMsgAddTestingResult = "add_testing_result"

Variables

View Source
var (
	ErrTestingResultsDoNotExist       = sdkerrors.Register(ModuleName, 201, "testing result does not exist")
	ErrModelVersionStringDoesNotMatch = sdkerrors.Register(ModuleName, 202, "model version does not match")
	ErrInvalidTestDateFormat          = sdkerrors.Register(ModuleName, 203, "test date must be in RFC3339 format")
)

x/compliancetest module sentinel errors.

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTestingResult        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTestingResult          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTestingResult = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTestingResults        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTestingResults          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTestingResults = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NewErrInvalidTestDateFormat

func NewErrInvalidTestDateFormat(testDate interface{}) error

func NewErrModelVersionStringDoesNotMatch

func NewErrModelVersionStringDoesNotMatch(vid interface{}, pid interface{},
	softwareVersion interface{}, softwareVersionString interface{}) error

func NewErrTestingResultsDoNotExist

func NewErrTestingResultsDoNotExist(vid interface{}, pid interface{}, softwareVersion uint32) error

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func TestingResultsKey

func TestingResultsKey(
	vid int32,
	pid int32,
	softwareVersion uint32,
) []byte

TestingResultsKey returns the store key to retrieve a TestingResults from the index fields.

Types

type DclauthKeeper

type DclauthKeeper interface {
	HasRole(ctx sdk.Context, addr sdk.AccAddress, roleToCheck dclauthtypes.AccountRole) bool
}

type GenesisState

type GenesisState struct {
	TestingResultsList []TestingResults `protobuf:"bytes,1,rep,name=testingResultsList,proto3" json:"testingResultsList"`
}

GenesisState defines the compliancetest module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetTestingResultsList

func (m *GenesisState) GetTestingResultsList() []TestingResults

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type ModelKeeper

type ModelKeeper interface {
	GetModelVersion(ctx sdk.Context, vid int32, pid int32, softwareVersion uint32) (val modeltypes.ModelVersion, found bool)
}

type MsgAddTestingResult

type MsgAddTestingResult struct {
	Signer                string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Vid                   int32  `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"`
	Pid                   int32  `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"`
	SoftwareVersion       uint32 `protobuf:"varint,4,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	SoftwareVersionString string `` /* 153-byte string literal not displayed */
	TestResult            string `protobuf:"bytes,6,opt,name=test_result,json=testResult,proto3" json:"test_result,omitempty" validate:"required,max=10485760"`
	TestDate              string `protobuf:"bytes,7,opt,name=test_date,json=testDate,proto3" json:"test_date,omitempty" validate:"required"`
}

func NewMsgAddTestingResult

func NewMsgAddTestingResult(signer string, vid int32, pid int32, softwareVersion uint32, softwareVersionString string, testResult string, testDate string) *MsgAddTestingResult

func (*MsgAddTestingResult) Descriptor

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

func (*MsgAddTestingResult) GetPid

func (m *MsgAddTestingResult) GetPid() int32

func (*MsgAddTestingResult) GetSignBytes

func (msg *MsgAddTestingResult) GetSignBytes() []byte

func (*MsgAddTestingResult) GetSigner

func (m *MsgAddTestingResult) GetSigner() string

func (*MsgAddTestingResult) GetSigners

func (msg *MsgAddTestingResult) GetSigners() []sdk.AccAddress

func (*MsgAddTestingResult) GetSoftwareVersion

func (m *MsgAddTestingResult) GetSoftwareVersion() uint32

func (*MsgAddTestingResult) GetSoftwareVersionString

func (m *MsgAddTestingResult) GetSoftwareVersionString() string

func (*MsgAddTestingResult) GetTestDate

func (m *MsgAddTestingResult) GetTestDate() string

func (*MsgAddTestingResult) GetTestResult

func (m *MsgAddTestingResult) GetTestResult() string

func (*MsgAddTestingResult) GetVid

func (m *MsgAddTestingResult) GetVid() int32

func (*MsgAddTestingResult) Marshal

func (m *MsgAddTestingResult) Marshal() (dAtA []byte, err error)

func (*MsgAddTestingResult) MarshalTo

func (m *MsgAddTestingResult) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddTestingResult) MarshalToSizedBuffer

func (m *MsgAddTestingResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddTestingResult) ProtoMessage

func (*MsgAddTestingResult) ProtoMessage()

func (*MsgAddTestingResult) Reset

func (m *MsgAddTestingResult) Reset()

func (*MsgAddTestingResult) Route

func (msg *MsgAddTestingResult) Route() string

func (*MsgAddTestingResult) Size

func (m *MsgAddTestingResult) Size() (n int)

func (*MsgAddTestingResult) String

func (m *MsgAddTestingResult) String() string

func (*MsgAddTestingResult) Type

func (msg *MsgAddTestingResult) Type() string

func (*MsgAddTestingResult) Unmarshal

func (m *MsgAddTestingResult) Unmarshal(dAtA []byte) error

func (*MsgAddTestingResult) ValidateBasic

func (msg *MsgAddTestingResult) ValidateBasic() error

func (*MsgAddTestingResult) XXX_DiscardUnknown

func (m *MsgAddTestingResult) XXX_DiscardUnknown()

func (*MsgAddTestingResult) XXX_Marshal

func (m *MsgAddTestingResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddTestingResult) XXX_Merge

func (m *MsgAddTestingResult) XXX_Merge(src proto.Message)

func (*MsgAddTestingResult) XXX_Size

func (m *MsgAddTestingResult) XXX_Size() int

func (*MsgAddTestingResult) XXX_Unmarshal

func (m *MsgAddTestingResult) XXX_Unmarshal(b []byte) error

type MsgAddTestingResultResponse

type MsgAddTestingResultResponse struct {
}

func (*MsgAddTestingResultResponse) Descriptor

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

func (*MsgAddTestingResultResponse) Marshal

func (m *MsgAddTestingResultResponse) Marshal() (dAtA []byte, err error)

func (*MsgAddTestingResultResponse) MarshalTo

func (m *MsgAddTestingResultResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddTestingResultResponse) MarshalToSizedBuffer

func (m *MsgAddTestingResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddTestingResultResponse) ProtoMessage

func (*MsgAddTestingResultResponse) ProtoMessage()

func (*MsgAddTestingResultResponse) Reset

func (m *MsgAddTestingResultResponse) Reset()

func (*MsgAddTestingResultResponse) Size

func (m *MsgAddTestingResultResponse) Size() (n int)

func (*MsgAddTestingResultResponse) String

func (m *MsgAddTestingResultResponse) String() string

func (*MsgAddTestingResultResponse) Unmarshal

func (m *MsgAddTestingResultResponse) Unmarshal(dAtA []byte) error

func (*MsgAddTestingResultResponse) XXX_DiscardUnknown

func (m *MsgAddTestingResultResponse) XXX_DiscardUnknown()

func (*MsgAddTestingResultResponse) XXX_Marshal

func (m *MsgAddTestingResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddTestingResultResponse) XXX_Merge

func (m *MsgAddTestingResultResponse) XXX_Merge(src proto.Message)

func (*MsgAddTestingResultResponse) XXX_Size

func (m *MsgAddTestingResultResponse) XXX_Size() int

func (*MsgAddTestingResultResponse) XXX_Unmarshal

func (m *MsgAddTestingResultResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	AddTestingResult(ctx context.Context, in *MsgAddTestingResult, opts ...grpc.CallOption) (*MsgAddTestingResultResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	AddTestingResult(context.Context, *MsgAddTestingResult) (*MsgAddTestingResultResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAllTestingResultsRequest

type QueryAllTestingResultsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllTestingResultsRequest) Descriptor

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

func (*QueryAllTestingResultsRequest) GetPagination

func (m *QueryAllTestingResultsRequest) GetPagination() *query.PageRequest

func (*QueryAllTestingResultsRequest) Marshal

func (m *QueryAllTestingResultsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllTestingResultsRequest) MarshalTo

func (m *QueryAllTestingResultsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllTestingResultsRequest) MarshalToSizedBuffer

func (m *QueryAllTestingResultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllTestingResultsRequest) ProtoMessage

func (*QueryAllTestingResultsRequest) ProtoMessage()

func (*QueryAllTestingResultsRequest) Reset

func (m *QueryAllTestingResultsRequest) Reset()

func (*QueryAllTestingResultsRequest) Size

func (m *QueryAllTestingResultsRequest) Size() (n int)

func (*QueryAllTestingResultsRequest) String

func (*QueryAllTestingResultsRequest) Unmarshal

func (m *QueryAllTestingResultsRequest) Unmarshal(dAtA []byte) error

func (*QueryAllTestingResultsRequest) XXX_DiscardUnknown

func (m *QueryAllTestingResultsRequest) XXX_DiscardUnknown()

func (*QueryAllTestingResultsRequest) XXX_Marshal

func (m *QueryAllTestingResultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllTestingResultsRequest) XXX_Merge

func (m *QueryAllTestingResultsRequest) XXX_Merge(src proto.Message)

func (*QueryAllTestingResultsRequest) XXX_Size

func (m *QueryAllTestingResultsRequest) XXX_Size() int

func (*QueryAllTestingResultsRequest) XXX_Unmarshal

func (m *QueryAllTestingResultsRequest) XXX_Unmarshal(b []byte) error

type QueryAllTestingResultsResponse

type QueryAllTestingResultsResponse struct {
	TestingResults []TestingResults    `protobuf:"bytes,1,rep,name=testingResults,proto3" json:"testingResults"`
	Pagination     *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllTestingResultsResponse) Descriptor

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

func (*QueryAllTestingResultsResponse) GetPagination

func (*QueryAllTestingResultsResponse) GetTestingResults

func (m *QueryAllTestingResultsResponse) GetTestingResults() []TestingResults

func (*QueryAllTestingResultsResponse) Marshal

func (m *QueryAllTestingResultsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllTestingResultsResponse) MarshalTo

func (m *QueryAllTestingResultsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllTestingResultsResponse) MarshalToSizedBuffer

func (m *QueryAllTestingResultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllTestingResultsResponse) ProtoMessage

func (*QueryAllTestingResultsResponse) ProtoMessage()

func (*QueryAllTestingResultsResponse) Reset

func (m *QueryAllTestingResultsResponse) Reset()

func (*QueryAllTestingResultsResponse) Size

func (m *QueryAllTestingResultsResponse) Size() (n int)

func (*QueryAllTestingResultsResponse) String

func (*QueryAllTestingResultsResponse) Unmarshal

func (m *QueryAllTestingResultsResponse) Unmarshal(dAtA []byte) error

func (*QueryAllTestingResultsResponse) XXX_DiscardUnknown

func (m *QueryAllTestingResultsResponse) XXX_DiscardUnknown()

func (*QueryAllTestingResultsResponse) XXX_Marshal

func (m *QueryAllTestingResultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllTestingResultsResponse) XXX_Merge

func (m *QueryAllTestingResultsResponse) XXX_Merge(src proto.Message)

func (*QueryAllTestingResultsResponse) XXX_Size

func (m *QueryAllTestingResultsResponse) XXX_Size() int

func (*QueryAllTestingResultsResponse) XXX_Unmarshal

func (m *QueryAllTestingResultsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Queries a TestingResults by index.
	TestingResults(ctx context.Context, in *QueryGetTestingResultsRequest, opts ...grpc.CallOption) (*QueryGetTestingResultsResponse, error)
	// Queries a list of TestingResults items.
	TestingResultsAll(ctx context.Context, in *QueryAllTestingResultsRequest, opts ...grpc.CallOption) (*QueryAllTestingResultsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetTestingResultsRequest

type QueryGetTestingResultsRequest struct {
	Vid             int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid             int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
}

func (*QueryGetTestingResultsRequest) Descriptor

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

func (*QueryGetTestingResultsRequest) GetPid

func (*QueryGetTestingResultsRequest) GetSoftwareVersion

func (m *QueryGetTestingResultsRequest) GetSoftwareVersion() uint32

func (*QueryGetTestingResultsRequest) GetVid

func (*QueryGetTestingResultsRequest) Marshal

func (m *QueryGetTestingResultsRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetTestingResultsRequest) MarshalTo

func (m *QueryGetTestingResultsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetTestingResultsRequest) MarshalToSizedBuffer

func (m *QueryGetTestingResultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetTestingResultsRequest) ProtoMessage

func (*QueryGetTestingResultsRequest) ProtoMessage()

func (*QueryGetTestingResultsRequest) Reset

func (m *QueryGetTestingResultsRequest) Reset()

func (*QueryGetTestingResultsRequest) Size

func (m *QueryGetTestingResultsRequest) Size() (n int)

func (*QueryGetTestingResultsRequest) String

func (*QueryGetTestingResultsRequest) Unmarshal

func (m *QueryGetTestingResultsRequest) Unmarshal(dAtA []byte) error

func (*QueryGetTestingResultsRequest) XXX_DiscardUnknown

func (m *QueryGetTestingResultsRequest) XXX_DiscardUnknown()

func (*QueryGetTestingResultsRequest) XXX_Marshal

func (m *QueryGetTestingResultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetTestingResultsRequest) XXX_Merge

func (m *QueryGetTestingResultsRequest) XXX_Merge(src proto.Message)

func (*QueryGetTestingResultsRequest) XXX_Size

func (m *QueryGetTestingResultsRequest) XXX_Size() int

func (*QueryGetTestingResultsRequest) XXX_Unmarshal

func (m *QueryGetTestingResultsRequest) XXX_Unmarshal(b []byte) error

type QueryGetTestingResultsResponse

type QueryGetTestingResultsResponse struct {
	TestingResults TestingResults `protobuf:"bytes,1,opt,name=testingResults,proto3" json:"testingResults"`
}

func (*QueryGetTestingResultsResponse) Descriptor

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

func (*QueryGetTestingResultsResponse) GetTestingResults

func (m *QueryGetTestingResultsResponse) GetTestingResults() TestingResults

func (*QueryGetTestingResultsResponse) Marshal

func (m *QueryGetTestingResultsResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetTestingResultsResponse) MarshalTo

func (m *QueryGetTestingResultsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetTestingResultsResponse) MarshalToSizedBuffer

func (m *QueryGetTestingResultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetTestingResultsResponse) ProtoMessage

func (*QueryGetTestingResultsResponse) ProtoMessage()

func (*QueryGetTestingResultsResponse) Reset

func (m *QueryGetTestingResultsResponse) Reset()

func (*QueryGetTestingResultsResponse) Size

func (m *QueryGetTestingResultsResponse) Size() (n int)

func (*QueryGetTestingResultsResponse) String

func (*QueryGetTestingResultsResponse) Unmarshal

func (m *QueryGetTestingResultsResponse) Unmarshal(dAtA []byte) error

func (*QueryGetTestingResultsResponse) XXX_DiscardUnknown

func (m *QueryGetTestingResultsResponse) XXX_DiscardUnknown()

func (*QueryGetTestingResultsResponse) XXX_Marshal

func (m *QueryGetTestingResultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetTestingResultsResponse) XXX_Merge

func (m *QueryGetTestingResultsResponse) XXX_Merge(src proto.Message)

func (*QueryGetTestingResultsResponse) XXX_Size

func (m *QueryGetTestingResultsResponse) XXX_Size() int

func (*QueryGetTestingResultsResponse) XXX_Unmarshal

func (m *QueryGetTestingResultsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Queries a TestingResults by index.
	TestingResults(context.Context, *QueryGetTestingResultsRequest) (*QueryGetTestingResultsResponse, error)
	// Queries a list of TestingResults items.
	TestingResultsAll(context.Context, *QueryAllTestingResultsRequest) (*QueryAllTestingResultsResponse, error)
}

QueryServer is the server API for Query service.

type TestingResult

type TestingResult struct {
	Vid                   int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid                   int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion       uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	SoftwareVersionString string `` /* 126-byte string literal not displayed */
	Owner                 string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	TestResult            string `protobuf:"bytes,6,opt,name=test_result,json=testResult,proto3" json:"test_result,omitempty"`
	TestDate              string `protobuf:"bytes,7,opt,name=test_date,json=testDate,proto3" json:"test_date,omitempty"`
}

func (*TestingResult) Descriptor

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

func (*TestingResult) GetOwner

func (m *TestingResult) GetOwner() string

func (*TestingResult) GetPid

func (m *TestingResult) GetPid() int32

func (*TestingResult) GetSoftwareVersion

func (m *TestingResult) GetSoftwareVersion() uint32

func (*TestingResult) GetSoftwareVersionString

func (m *TestingResult) GetSoftwareVersionString() string

func (*TestingResult) GetTestDate

func (m *TestingResult) GetTestDate() string

func (*TestingResult) GetTestResult

func (m *TestingResult) GetTestResult() string

func (*TestingResult) GetVid

func (m *TestingResult) GetVid() int32

func (*TestingResult) Marshal

func (m *TestingResult) Marshal() (dAtA []byte, err error)

func (*TestingResult) MarshalTo

func (m *TestingResult) MarshalTo(dAtA []byte) (int, error)

func (*TestingResult) MarshalToSizedBuffer

func (m *TestingResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestingResult) ProtoMessage

func (*TestingResult) ProtoMessage()

func (*TestingResult) Reset

func (m *TestingResult) Reset()

func (*TestingResult) Size

func (m *TestingResult) Size() (n int)

func (*TestingResult) String

func (m *TestingResult) String() string

func (*TestingResult) Unmarshal

func (m *TestingResult) Unmarshal(dAtA []byte) error

func (*TestingResult) XXX_DiscardUnknown

func (m *TestingResult) XXX_DiscardUnknown()

func (*TestingResult) XXX_Marshal

func (m *TestingResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestingResult) XXX_Merge

func (m *TestingResult) XXX_Merge(src proto.Message)

func (*TestingResult) XXX_Size

func (m *TestingResult) XXX_Size() int

func (*TestingResult) XXX_Unmarshal

func (m *TestingResult) XXX_Unmarshal(b []byte) error

type TestingResults

type TestingResults struct {
	Vid                   int32            `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid                   int32            `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion       uint32           `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	Results               []*TestingResult `protobuf:"bytes,4,rep,name=results,proto3" json:"results,omitempty"`
	SoftwareVersionString string           `` /* 126-byte string literal not displayed */
}

func (*TestingResults) Descriptor

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

func (*TestingResults) GetPid

func (m *TestingResults) GetPid() int32

func (*TestingResults) GetResults

func (m *TestingResults) GetResults() []*TestingResult

func (*TestingResults) GetSoftwareVersion

func (m *TestingResults) GetSoftwareVersion() uint32

func (*TestingResults) GetSoftwareVersionString

func (m *TestingResults) GetSoftwareVersionString() string

func (*TestingResults) GetVid

func (m *TestingResults) GetVid() int32

func (*TestingResults) Marshal

func (m *TestingResults) Marshal() (dAtA []byte, err error)

func (*TestingResults) MarshalTo

func (m *TestingResults) MarshalTo(dAtA []byte) (int, error)

func (*TestingResults) MarshalToSizedBuffer

func (m *TestingResults) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestingResults) ProtoMessage

func (*TestingResults) ProtoMessage()

func (*TestingResults) Reset

func (m *TestingResults) Reset()

func (*TestingResults) Size

func (m *TestingResults) Size() (n int)

func (*TestingResults) String

func (m *TestingResults) String() string

func (*TestingResults) Unmarshal

func (m *TestingResults) Unmarshal(dAtA []byte) error

func (*TestingResults) XXX_DiscardUnknown

func (m *TestingResults) XXX_DiscardUnknown()

func (*TestingResults) XXX_Marshal

func (m *TestingResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestingResults) XXX_Merge

func (m *TestingResults) XXX_Merge(src proto.Message)

func (*TestingResults) XXX_Size

func (m *TestingResults) XXX_Size() int

func (*TestingResults) XXX_Unmarshal

func (m *TestingResults) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddTestingResult

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) TestingResults

func (*UnimplementedQueryServer) TestingResultsAll

Jump to

Keyboard shortcuts

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