Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type ClientFactory interface { NewPermsClient() permsrv.PermissionsService NewRoleClient() rolesrv.RolesService }
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(name string, factory ClientFactory, log *zap.Logger) *Command
func (*Command) Exec ¶
func (c *Command) Exec(ctx context.Context, req *proto.ExecRequest, rsp *proto.ExecResponse) error
func (*Command) Help ¶
func (c *Command) Help(ctx context.Context, req *proto.HelpRequest, rsp *proto.HelpResponse) error
Click to show internal directories.
Click to hide internal directories.