Documentation ¶
Index ¶
- func CategorizeKeycodeErrorId(errorId int) int32
- func NewKeycode() *Keycodes.Keycode
- func TransformKeycode(keycode *KeycodeMgt.Keycode) *Keycodes.Keycode
- func TransformKeycodeList(keycodes []*KeycodeMgt.Keycode) []*Keycodes.Keycode
- type IError
- type ServiceKeycodes
- func (c *ServiceKeycodes) ActivateRegistrationData(ctx context.Context, in *Keycodes.ActivateRegistrationDataRequest) (*status.Status, error)
- func (c *ServiceKeycodes) AddKeycode(ctx context.Context, in *Keycodes.AddKeycodeRequest) (*Keycodes.AddKeycodeResponse, error)
- func (c *ServiceKeycodes) DeleteKeycode(ctx context.Context, in *Keycodes.DeleteKeycodeRequest) (*status.Status, error)
- func (c *ServiceKeycodes) GenerateRegistrationData(ctx context.Context, in *empty.Empty) (*Keycodes.GenerateRegistrationDataResponse, error)
- func (c *ServiceKeycodes) ListKeycodes(ctx context.Context, in *Keycodes.ListKeycodesRequest) (*Keycodes.ListKeycodesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeycode ¶
func TransformKeycode ¶
func TransformKeycode(keycode *KeycodeMgt.Keycode) *Keycodes.Keycode
func TransformKeycodeList ¶
func TransformKeycodeList(keycodes []*KeycodeMgt.Keycode) []*Keycodes.Keycode
Types ¶
type IError ¶
type IError = Errors.InternalError
type ServiceKeycodes ¶
type ServiceKeycodes struct {
Config *DatahubConfig.Config
}
func NewService ¶
func NewService(cfg *DatahubConfig.Config) *ServiceKeycodes
func (*ServiceKeycodes) ActivateRegistrationData ¶
func (c *ServiceKeycodes) ActivateRegistrationData(ctx context.Context, in *Keycodes.ActivateRegistrationDataRequest) (*status.Status, error)
func (*ServiceKeycodes) AddKeycode ¶
func (c *ServiceKeycodes) AddKeycode(ctx context.Context, in *Keycodes.AddKeycodeRequest) (*Keycodes.AddKeycodeResponse, error)
func (*ServiceKeycodes) DeleteKeycode ¶
func (c *ServiceKeycodes) DeleteKeycode(ctx context.Context, in *Keycodes.DeleteKeycodeRequest) (*status.Status, error)
func (*ServiceKeycodes) GenerateRegistrationData ¶
func (c *ServiceKeycodes) GenerateRegistrationData(ctx context.Context, in *empty.Empty) (*Keycodes.GenerateRegistrationDataResponse, error)
func (*ServiceKeycodes) ListKeycodes ¶
func (c *ServiceKeycodes) ListKeycodes(ctx context.Context, in *Keycodes.ListKeycodesRequest) (*Keycodes.ListKeycodesResponse, error)
Click to show internal directories.
Click to hide internal directories.