input_ip

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CredNET

func CredNET() (map[string]string, bool)

CredNET credenciales red equipo servidor

func CredUSERPC

func CredUSERPC() map[string]string

CredUSERPC credenciales usuario pc

func GetIP

func GetIP(r *http.Request) (ip string, ok bool)

GetIP convierte el formato 192.168.0.8:34182 a 192.168.0.8 y verifica si es una ip valida y la retorna

Types

type Ip

type Ip struct {
}

direccion ip valida campos separados por puntos

func (Ip) Build

func (i Ip) Build(id, field_name string, skip_completion_allowed bool) string

representación

func (Ip) GoodTestData

func (i Ip) GoodTestData(table_name, field_name string, random bool) (out []string)

func (Ip) HtmlName

func (i Ip) HtmlName() string

func (Ip) Name

func (i Ip) Name() string

func (Ip) Validate

func (i Ip) Validate(data_in string, skip_validation bool) (ok bool)

validación con datos de entrada

func (Ip) WrongTestData

func (i Ip) WrongTestData() (out []string)

Jump to

Keyboard shortcuts

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