Help us shape the future of Go! Take the 2026 Go Developer Survey

requestpbtypes

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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