requestpbtypes

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Requests []*HashedRequest
}

func BatchFromPb

func BatchFromPb(pb *requestpb.Batch) *Batch

func (*Batch) MirReflect

func (*Batch) MirReflect() mirreflect.Type

func (*Batch) Pb

func (m *Batch) Pb() *requestpb.Batch

type HashedRequest

type HashedRequest struct {
	Req    *Request
	Digest []uint8
}

func HashedRequestFromPb

func HashedRequestFromPb(pb *requestpb.HashedRequest) *HashedRequest

func (*HashedRequest) MirReflect

func (*HashedRequest) MirReflect() mirreflect.Type

func (*HashedRequest) Pb

type Request

type Request struct {
	ClientId types.ClientID
	ReqNo    types.ReqNo
	Type     uint64
	Data     []uint8
}

func RequestFromPb

func RequestFromPb(pb *requestpb.Request) *Request

func (*Request) MirReflect

func (*Request) MirReflect() mirreflect.Type

func (*Request) Pb

func (m *Request) Pb() *requestpb.Request

Jump to

Keyboard shortcuts

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