Documentation ¶
Index ¶
- Constants
- type Conf
- type ConfWrapper
- type DefaultService
- type DynamicConf
- func (ego DynamicConf) Class() string
- func (ego DynamicConf) Clone() DynamicConf
- func (ego DynamicConf) Decode(ptr any) error
- func (ego DynamicConf) Encode(ptr any) error
- func (ego DynamicConf) Marshal() ([]byte, error)
- func (ego DynamicConf) String() string
- func (ego DynamicConf) Unmarshal(jsonBytes []byte) error
- type GId
- type Gobject
- type Gobjecter
- type GonatusKeeper
- type RemoteObject
- type Service
Constants ¶
View Source
const ConfSuffix = "Conf" // Suffix of all configuration structures.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfWrapper ¶
func WrapConf ¶
func WrapConf(conf Conf) ConfWrapper
type DefaultService ¶
type DefaultService[T RemoteObject] struct { // contains filtered or unexported fields }
func NewDefaultService ¶
func NewDefaultService[T RemoteObject](service Service, constructor func(Conf) (T, error)) *DefaultService[T]
func (*DefaultService[T]) Fetch ¶
func (ego *DefaultService[T]) Fetch(id GId) RemoteObject
func (*DefaultService[T]) Remove ¶
func (ego *DefaultService[T]) Remove(ids ...GId) error
type DynamicConf ¶
func NewConf ¶
func NewConf(class string) DynamicConf
func (DynamicConf) Class ¶
func (ego DynamicConf) Class() string
func (DynamicConf) Clone ¶
func (ego DynamicConf) Clone() DynamicConf
func (DynamicConf) Decode ¶
func (ego DynamicConf) Decode(ptr any) error
func (DynamicConf) Encode ¶
func (ego DynamicConf) Encode(ptr any) error
func (DynamicConf) Marshal ¶
func (ego DynamicConf) Marshal() ([]byte, error)
func (DynamicConf) String ¶
func (ego DynamicConf) String() string
func (DynamicConf) Unmarshal ¶
func (ego DynamicConf) Unmarshal(jsonBytes []byte) error
type Gobject ¶
type Gobject struct {
// contains filtered or unexported fields
}
type GonatusKeeper ¶
type GonatusKeeper struct { Gobject // contains filtered or unexported fields }
func (*GonatusKeeper) Fetch ¶
func (ego *GonatusKeeper) Fetch(id GId) Service
func (*GonatusKeeper) NewId ¶
func (ego *GonatusKeeper) NewId() GId
func (*GonatusKeeper) Register ¶
func (ego *GonatusKeeper) Register(s Service)
func (*GonatusKeeper) Unregister ¶
func (ego *GonatusKeeper) Unregister(s Service) error
type RemoteObject ¶
Click to show internal directories.
Click to hide internal directories.