Documentation ¶
Index ¶
- Constants
- Variables
- func Bytes2Long(data []byte) int64
- func CreateCA(filenamePrefix, org, country, county, city, street, zipcode, email string, ...) (*x509.Certificate, *rsa.PrivateKey, error)
- func CreateCrt(...) error
- func CreateDefaultTestCertificate() error
- func Decrypt(stringToDecode, key string) ([]byte, error)
- func DeepDecorator(node *model.Node) bool
- func Encrypt(dataToEncode []byte, key string) (string, error)
- func GenerateAES256Key() string
- func IgnoreName(fieldName string) bool
- func IsLeaf(node *model.Node) bool
- func IsRoot(node *model.Node) bool
- func Long2Bytes(s int64) []byte
- func NodeKey(instanceId string) string
- func PrimaryDecorator(node *model.Node, value reflect.Value) string
- func PrimaryDecoratorFields(node *model.Node) []string
- func Read(conn net.Conn) ([]byte, error)
- func ReadSize(size int, conn net.Conn) ([]byte, error)
- func TypeName(any interface{}) string
- func TypeOf(any interface{}) reflect.Type
- func ValueAndType(any interface{}) (reflect.Value, reflect.Type)
- func Write(data []byte, conn net.Conn) error
- type DataStoreDecorator
- type DatatListener
- type IFetch
- type IHealthCeter
- type IIntrospect
- type IORM
- type IOrmPlugin
- type IRegistry
- type IServiceCenter
- type IServicePoints
- type Port
- type ProtobufObjectType
- type ServicePointHandler
Constants ¶
View Source
const (
RECKEY = "_RK_"
)
Variables ¶
View Source
var JsonMarshalOptions = protojson.MarshalOptions{ EmitUnpopulated: true, Multiline: true, }
View Source
var NetConfig = &model.NetConfig{
MaxDataSize: 1024 * 1024,
DefaultTxQueueSize: 1000,
DefaultRxQueueSize: 1000,
DefaultSwitchPort: 50000,
}
Functions ¶
func Bytes2Long ¶
func CreateCA ¶
func CreateCA(filenamePrefix, org, country, county, city, street, zipcode, email string, years int) (*x509.Certificate, *rsa.PrivateKey, error)
func CreateCrt ¶
func CreateCrt(filenamePrefix, org, country, county, city, street, zipcode, email, ip, secret string, port int64, years int, ca *x509.Certificate, caKey *rsa.PrivateKey) error
func CreateDefaultTestCertificate ¶
func CreateDefaultTestCertificate() error
func DeepDecorator ¶
func GenerateAES256Key ¶
func GenerateAES256Key() string
func IgnoreName ¶
func Long2Bytes ¶
func PrimaryDecoratorFields ¶
Types ¶
type DataStoreDecorator ¶
type DatatListener ¶
type IHealthCeter ¶
type IHealthCeter interface { AddPort(Port) ApplyReport(*model.Report) AddService(string, string) ServiceUuids(string) []string Clone() *model.HealthCenter }
var HealthCenter IHealthCeter
type IIntrospect ¶
type IIntrospect interface { Inspect(interface{}) (*model.Node, error) Node(string) (*model.Node, bool) NodeByType(p reflect.Type) (*model.Node, bool) NodeByTypeName(string) (*model.Node, bool) NodeByValue(interface{}) (*model.Node, bool) Nodes(bool, bool) []*model.Node Print() Registry() IRegistry Kind(*model.Node) reflect.Kind Clone(interface{}) interface{} AddDecorator(model.DecoratorType, interface{}, *model.Node) DecoratorOf(model.DecoratorType, *model.Node) interface{} TableView(string) (*model.TableView, bool) TableViews() []*model.TableView }
var Introspect IIntrospect
type IORM ¶
type IORM interface { Introspect() IIntrospect Persist(interface{}) error Fetch(IFetch) (interface{}, error) }
type IOrmPlugin ¶
type IRegistry ¶
type IRegistry interface { RegisterStruct(interface{}) bool RegisterStructType(reflect.Type) bool NewProtobufInstance(string) (proto.Message, error) NewInstance(string) (interface{}, error) TypeByName(string) (reflect.Type, error) }
var Registry IRegistry
type IServicePoints ¶
type IServicePoints interface { RegisterServicePoint(proto.Message, ServicePointHandler, IRegistry) error Handle(proto.Message, model.Action, Port) (proto.Message, error) }
var ServicePoints IServicePoints
type ProtobufObjectType ¶
type ServicePointHandler ¶
type ServicePointHandler interface { Post(proto.Message, Port) (proto.Message, error) Put(proto.Message, Port) (proto.Message, error) Patch(proto.Message, Port) (proto.Message, error) Delete(proto.Message, Port) (proto.Message, error) Get(proto.Message, Port) (proto.Message, error) EndPoint() string }
Source Files ¶
- Introspect_helpers.go
- api_gateway_helpers.go
- health_center_interfaces.go
- instance_helpers.go
- introspect_interfaces.go
- mdql_interfaces.go
- net_Interfaces.go
- net_helpers.go
- orm_helpers.go
- orm_interfaces.go
- protobuf_object_interfaces.go
- registry_helpers.go
- registry_interfaces.go
- security_helpers.go
- service_center_interfaces.go
- service_points_interfaces.go
Click to show internal directories.
Click to hide internal directories.