liferay

package
Version: v0.0.0-...-d84e329 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownVersion int = -1
	V62            int = 6200
)

Variables

View Source
var ErrUnauthorized = errors.New("http: authentication failed")

Functions

func GetPortalVersion

func GetPortalVersion(url string) (int, error)

func MangleObjectWrapper

func MangleObjectWrapper(params map[string]interface{}, name string, className string, wrapper *ObjectWrapper)

func ToJSONString

func ToJSONString(a []byte) string

Types

type BatchSession

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

func NewBatchSession

func NewBatchSession(server string, username string, password string) *BatchSession

func (*BatchSession) Clear

func (s *BatchSession) Clear()

func (BatchSession) Client

func (s BatchSession) Client() *http.Client

func (*BatchSession) Invoke

func (s *BatchSession) Invoke(cmd map[string]interface{}) (interface{}, error)

func (*BatchSession) InvokeAll

func (s *BatchSession) InvokeAll() ([]interface{}, error)

func (BatchSession) Server

func (s BatchSession) Server() string

func (BatchSession) SetAuth

func (s BatchSession) SetAuth(req *http.Request)

func (*BatchSession) Upload

func (s *BatchSession) Upload(cmd map[string]interface{}) (interface{}, error)

type ObjectWrapper

type ObjectWrapper struct {
	ClassName string
	Object    map[string]interface{}
}

type ServerError

type ServerError int

func (ServerError) Error

func (e ServerError) Error() string

type Session

type Session interface {
	Client() *http.Client
	Invoke(cmd map[string]interface{}) (interface{}, error)
	Server() string
	SetAuth(req *http.Request)
	Upload(cmd map[string]interface{}) (interface{}, error)
}

func NewSession

func NewSession(server string, username string, password string) Session

Directories

Path Synopsis
service

Jump to

Keyboard shortcuts

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