Documentation ¶
Overview ¶
Package assetattributor is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
func NewTransport(rt http.RoundTripper) *http.Client
NewTransport creates a new Transport object with any passed in information
Types ¶
type ACLCheckPOST ¶
type ACLCheckPOST struct { Username string `json:"username"` ClientID string `json:"clientid"` Topic string `json:"topic"` ACC string `json:"acc"` }
ACLCheckPOST is the struct that is sent to the acl endpoint
type ClientCheckPOST ¶
type ClientCheckPOST struct { ClientID string `json:"clientid"` Password string `json:"password"` Username string `json:"username"` }
ClientCheckPOST is the struct that is sent to the client authentication endpoint
type Hook ¶
Hook is a hook that makes http requests to an external service
func (*Hook) OnACLCheck ¶
OnACLCheck is called when a client attempts to publish or subscribe to a topic
func (*Hook) OnConnectAuthenticate ¶
OnConnectAuthenticate is called when a client attempts to connect to the server
type MockRoundTripper ¶
type MockRoundTripper struct {
// contains filtered or unexported fields
}
MockRoundTripper is a mock of RoundTripper interface
func NewMockRoundTripper ¶
func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper
NewMockRoundTripper creates a new mock instance
func (*MockRoundTripper) EXPECT ¶
func (m *MockRoundTripper) EXPECT() *MockRoundTripperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRoundTripperMockRecorder ¶
type MockRoundTripperMockRecorder struct {
// contains filtered or unexported fields
}
MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper
func (*MockRoundTripperMockRecorder) RoundTrip ¶
func (mr *MockRoundTripperMockRecorder) RoundTrip(arg0 interface{}) *gomock.Call
RoundTrip indicates an expected call of RoundTrip
type Options ¶
type Options struct { ACLHost *url.URL SuperUserHost *url.URL ClientAuthenticationHost *url.URL // currently unused RoundTripper http.RoundTripper Callback func(resp *http.Response) bool }
Options is a struct that contains all the information required to configure the http hook It is the responsibility of the configurer to pass a properly configured RoundTripper that takes care other requirements such as authentication, timeouts, retries, etc
type Transport ¶
type Transport struct {
OriginalTransport http.RoundTripper
}
Transport represents everything required for adding to the roundtripper interface