go-admin: github.com/GoAdminGroup/go-admin/modules/service Index | Files

package service

import "github.com/GoAdminGroup/go-admin/modules/service"

Index

Package Files

service.go

func Register Uses

func Register(k string, gen Generator)

type Generator Uses

type Generator func() (Service, error)

type Generators Uses

type Generators map[string]Generator

type List Uses

type List map[string]Service

func GetServices Uses

func GetServices() List

func (List) Add Uses

func (g List) Add(k string, service Service)

func (List) Get Uses

func (g List) Get(k string) Service

func (List) GetOrNot Uses

func (g List) GetOrNot(k string) (Service, bool)

type Service Uses

type Service interface {
    Name() string
}

Package service is imported by 9 packages. Updated 2020-01-22. Refresh now. Tools for package owners.