objsender

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	ToMap() map[string]interface{}
}

type Session

type Session struct {
	// contains filtered or unexported fields
}

func Root

func Root(agent rpcdef.Agent, objectType string) (*Session, error)

func RootTracking

func RootTracking(agent rpcdef.Agent, trackingName string) (*Session, error)

func (*Session) Done

func (s *Session) Done() error

func (*Session) DoneLastProcessed

func (s *Session) DoneLastProcessed(lastProcess string) error

func (*Session) IncProgress

func (s *Session) IncProgress() error

func (*Session) LastProcessed

func (s *Session) LastProcessed() string

func (*Session) LastProcessedTime

func (s *Session) LastProcessedTime() time.Time

func (*Session) Rollback

func (s *Session) Rollback() error

func (*Session) Send

func (s *Session) Send(obj Model) error

func (*Session) SendMap

func (s *Session) SendMap(m map[string]interface{}) error

func (*Session) Session

func (par *Session) Session(objectType string, parentObjectID string, parentObjectName string) (*Session, error)

func (*Session) SessionTracking

func (par *Session) SessionTracking(objectType string, parentObjectID string, parentObjectName string) (*Session, error)

func (*Session) SetNoAutoProgress

func (s *Session) SetNoAutoProgress(v bool)

func (*Session) SetTotal

func (s *Session) SetTotal(total int) error

type SessionTracking

type SessionTracking struct {
	Session
}

Jump to

Keyboard shortcuts

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