user_client

package
v0.0.0-...-0ae7237 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(baseURL string) (om.UserManager, error)

Types

type EndpointSet

type EndpointSet struct {
	RegisterEndpoint endpoint.Endpoint
	LoginEndpoint    endpoint.Endpoint
	LogoutEndpoint   endpoint.Endpoint
}

func (EndpointSet) Login

func (s EndpointSet) Login(username string, authToken string) (session string, err error)

func (EndpointSet) Logout

func (s EndpointSet) Logout(username string, session string) (err error)

func (EndpointSet) Register

func (s EndpointSet) Register(user om.User) (err error)

type SimpleResponse

type SimpleResponse struct {
	Err string
}

Jump to

Keyboard shortcuts

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