structs

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: GPL-3.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireHeaderInt64

func RequireHeaderInt64(md metadata.MD, name string) (int64, error)

Types

type ImagePush

type ImagePush struct {
	sonm.Worker_PushTaskServer
	// contains filtered or unexported fields
}

func NewImagePush

func NewImagePush(stream sonm.Worker_PushTaskServer) (*ImagePush, error)

func (*ImagePush) DealId

func (p *ImagePush) DealId() string

func (*ImagePush) ImageSize

func (p *ImagePush) ImageSize() int64

type NetworkSpec added in v0.4.1

type NetworkSpec struct {
	*sonm.NetworkSpec
	NetID string
}

func NewNetworkSpec added in v0.4.1

func NewNetworkSpec(spec *sonm.NetworkSpec) (*NetworkSpec, error)

func NewNetworkSpecs added in v0.4.1

func NewNetworkSpecs(specs []*sonm.NetworkSpec) ([]*NetworkSpec, error)

Jump to

Keyboard shortcuts

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