Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiController ¶
type ApiController interface { CreateUser(*models.CreateUserViewModel) error Ping(int, time.Duration, bool) error UpdatePermissions(*models.UpdatePermissionsViewModel) error }
func NewSdkApiController ¶
func NewSdkApiController(serverUrl *url.URL, debug bool, credentials *models.UserCredentials) (c ApiController)
type ConfigController ¶
func NewViperConfigController ¶
func NewViperConfigController(cfgFile string, verbose bool) ConfigController
type NewApiController ¶
type NewApiController func(*url.URL, bool, *models.UserCredentials) ApiController
type NewConfigController ¶
type NewConfigController func(string, bool) ConfigController
type RocketChatClient ¶
type RocketChatClient interface { Login(credentials *models.UserCredentials) error CreateUser(req *models.CreateUserRequest) (*rest.CreateUserResponse, error) UpdatePermissions(req *rest.UpdatePermissionsRequest) (*rest.UpdatePermissionsResponse, error) }
type SdkApiController ¶
type SdkApiController struct { Client RocketChatClient Credentials *sdkModels.UserCredentials }
func (*SdkApiController) CreateUser ¶
func (c *SdkApiController) CreateUser(model *models.CreateUserViewModel) (err error)
func (*SdkApiController) UpdatePermissions ¶
func (c *SdkApiController) UpdatePermissions(model *models.UpdatePermissionsViewModel) (err error)
Click to show internal directories.
Click to hide internal directories.