mvc

package
v0.0.0-...-0039ccc Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call interface {
	sdk.Call
	GetModel(
		ctx context.Context,
		id string, opts ...GetOption) (proto.Message, error)
	LoadModel(
		ctx context.Context,
		id string, model proto.Message, opts ...GetOption) error
}

func FromContext

func FromContext(ctx context.Context) (Call, bool)

type GetOption

type GetOption interface {
	// contains filtered or unexported methods
}

func WithAddIfNotFound

func WithAddIfNotFound(model proto.Message) GetOption

Jump to

Keyboard shortcuts

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