Documentation ¶
Index ¶
- func NewExampleController(svc *ExampleService) web.Controller
- type ExampleController
- type ExampleRequest
- type ExampleService
- func (s *ExampleService) CallRemoteWithCurrentContext(ctx context.Context) (ret interface{}, err error)
- func (s *ExampleService) CallRemoteWithSystemAccount(ctx context.Context, username string) (ret interface{}, err error)
- func (s *ExampleService) CallRemoteWithoutSystemAccount(ctx context.Context, username string) (ret interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExampleController ¶
func NewExampleController(svc *ExampleService) web.Controller
Types ¶
type ExampleController ¶
type ExampleController struct {
Service *ExampleService
}
func (*ExampleController) Mappings ¶
func (c *ExampleController) Mappings() []web.Mapping
func (*ExampleController) Remote ¶
func (c *ExampleController) Remote(ctx context.Context, req *ExampleRequest) (interface{}, error)
type ExampleRequest ¶
type ExampleService ¶
type ExampleService struct {
HttpClient httpclient.Client
}
func NewExampleService ¶
func NewExampleService(client httpclient.Client) (*ExampleService, error)
func (*ExampleService) CallRemoteWithCurrentContext ¶
func (s *ExampleService) CallRemoteWithCurrentContext(ctx context.Context) (ret interface{}, err error)
CallRemoteWithCurrentContext make remote HTTP call using current security context
func (*ExampleService) CallRemoteWithSystemAccount ¶
func (s *ExampleService) CallRemoteWithSystemAccount(ctx context.Context, username string) (ret interface{}, err error)
CallRemoteWithSystemAccount switch to given username using system account and make remote HTTP call
func (*ExampleService) CallRemoteWithoutSystemAccount ¶
func (s *ExampleService) CallRemoteWithoutSystemAccount(ctx context.Context, username string) (ret interface{}, err error)
CallRemoteWithoutSystemAccount switch to given username directly and make remote HTTP call
Click to show internal directories.
Click to hide internal directories.