Documentation ¶
Overview ¶
Package tcp provides a Target subtype for a TCP Target. Importing this package will register it with the target package and allow the target.Repository to support tcp.Targets.
Index ¶
- Constants
- func TestTarget(ctx context.Context, t testing.TB, conn *db.DB, projectId, name string, ...) target.Target
- type Target
- func (t *Target) Clone() target.Target
- func (t *Target) GetAddress() string
- func (t *Target) GetType() subtypes.Subtype
- func (t *Target) Oplog(op oplog.OpType) oplog.Metadata
- func (t *Target) SetAddress(address string)
- func (t *Target) SetCreateTime(ts *timestamp.Timestamp)
- func (t *Target) SetDefaultPort(port uint32)
- func (t *Target) SetDescription(description string)
- func (t *Target) SetEgressWorkerFilter(filter string)
- func (t *Target) SetIngressWorkerFilter(filter string)
- func (t *Target) SetName(name string)
- func (t *Target) SetProjectId(projectId string)
- func (t *Target) SetPublicId(ctx context.Context, publicId string) error
- func (t *Target) SetSessionConnectionLimit(limit int32)
- func (t *Target) SetSessionMaxSeconds(s uint32)
- func (t *Target) SetTableName(n string)
- func (t *Target) SetUpdateTime(ts *timestamp.Timestamp)
- func (t *Target) SetVersion(v uint32)
- func (t *Target) SetWorkerFilter(filter string)
- func (t *Target) TableName() string
- func (t *Target) VetForWrite(ctx context.Context, _ db.Reader, opType db.OpType, _ ...db.Option) error
Constants ¶
View Source
const (
Subtype = subtypes.Subtype("tcp")
)
View Source
const (
// TargetPrefix is the prefix for public ids of a tcp.Target.
TargetPrefix = "ttcp"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Target ¶
type Target struct { *store.Target // Network address assigned to the Target. Address string `json:"address,omitempty" gorm:"-"` // contains filtered or unexported fields }
Target is a resources that represets a networked service that can be accessed via TCP. It is a subtype of target.Target.
func (*Target) GetAddress ¶ added in v0.12.0
func (*Target) Oplog ¶
Oplog provides the oplog.Metadata for recording operations taken on a Target.
func (*Target) SetAddress ¶ added in v0.12.0
func (*Target) SetCreateTime ¶
func (*Target) SetDefaultPort ¶
func (*Target) SetDescription ¶
func (*Target) SetEgressWorkerFilter ¶ added in v0.12.0
func (*Target) SetIngressWorkerFilter ¶ added in v0.12.0
func (*Target) SetProjectId ¶ added in v0.10.2
func (*Target) SetPublicId ¶
func (*Target) SetSessionConnectionLimit ¶
func (*Target) SetSessionMaxSeconds ¶
func (*Target) SetTableName ¶
SetTableName sets the tablename and satisfies the ReplayableMessage interface. If the caller attempts to set the name to "" the name will be reset to the default name.
func (*Target) SetUpdateTime ¶
func (*Target) SetVersion ¶
func (*Target) SetWorkerFilter ¶
Click to show internal directories.
Click to hide internal directories.