internal

package
v0.0.0-...-f297783 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

* * Frank Willem Mulder * __________________ * * Copyright 2026 Frank Willem Mulder. All rights reserved. * Use of this source code is governed license that can be found in the LICENSE file.

Index

Constants

View Source
const USER_CLASS_NAME = "User"

Variables

This section is empty.

Functions

This section is empty.

Types

type Airport

type Airport struct {
	objecttables.Fact[any]
	Code    string `fact:"key"`
	Name    string
	Country string
}

func NewAirport

func NewAirport(name string, code string, country string) *Airport

func (*Airport) FromBytes

func (f *Airport) FromBytes(buf []byte) objecttables.FactI[any]

func (*Airport) Keys

func (f *Airport) Keys() []any

func (*Airport) String

func (f *Airport) String() string

func (*Airport) ToBytes

func (f *Airport) ToBytes() []byte

type Country

type Country struct {
	objecttables.Fact[any]
	Code string `fact:"key"`
	Name string
}

func NewCountry

func NewCountry(name string, code string) *Country

func (*Country) FromBytes

func (f *Country) FromBytes(buf []byte) objecttables.FactI[any]

func (*Country) Keys

func (f *Country) Keys() []any

func (*Country) String

func (f *Country) String() string

func (*Country) ToBytes

func (f *Country) ToBytes() []byte

type Flight

type Flight struct {
	objecttables.Fact[any]
	FlightNumber string `fact:"key"`
	Departure    string
	Arrival      string
}

func NewFlight

func NewFlight(FlightNumber string, departure string, arrival string) *Flight

func (*Flight) FromBytes

func (f *Flight) FromBytes(buf []byte) objecttables.FactI[any]

func (*Flight) Keys

func (f *Flight) Keys() []any

func (*Flight) SetTix

func (f *Flight) SetTix(tix int)

func (*Flight) String

func (f *Flight) String() string

func (*Flight) ToBytes

func (f *Flight) ToBytes() []byte

type User

type User struct {
	objecttables.Fact[any]
	Id   int    `fact:"key" json:"id"`
	Name string `json:"name"`
	Age  int    `json:"age"`
}

func NewUser

func NewUser(name string, age int) *User

func (*User) FromBytes

func (f *User) FromBytes(buf []byte) objecttables.FactI[any]

func (*User) Keys

func (u *User) Keys() []any

func (*User) String

func (u *User) String() string

func (*User) ToBytes

func (f *User) ToBytes() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL