ticket

package
v0.0.0-...-0ba3bd2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2015 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Overview

ID と有効期限だけを持つ引換券。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticket

type Ticket struct {
	// contains filtered or unexported fields
}

func New

func New(id string, exp time.Time) *Ticket

func (*Ticket) Expires

func (this *Ticket) Expires() time.Time

有効期限を返す。

func (*Ticket) Id

func (this *Ticket) Id() string

ID を返す。

func (*Ticket) MarshalJSON

func (this *Ticket) MarshalJSON() (data []byte, err error)
{
    "id": <ID>,
    "expires": <有効期限>
}

func (*Ticket) UnmarshalJSON

func (this *Ticket) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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