Documentation ¶
Overview ¶
Copyright 2017 Matt Ho
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2017 Matt Ho ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2017 Matt Ho ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- type Option
- func AWSConfig(config *aws.Config) Option
- func Codecs(codecs ...securecookie.Codec) Option
- func Domain(v string) Option
- func DynamoDB(ddb *dynamodb.DynamoDB) Option
- func HTTPOnly() Option
- func MaxAge(v int) Option
- func Output(w io.Writer) Option
- func Path(v string) Option
- func Secure() Option
- func SessionOptions(options sessions.Options) Option
- func TTLField(ttlField string) Option
- func TableName(tableName string) Option
- type Store
Constants ¶
const ( // DefaultTableName is the default table name used by the dynamodb store DefaultTableName = "dynastore" // DefaultTTLField contains the default name of the ttl field DefaultTTLField = "ttl" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Store)
Option provides options to creating a dynastore
func Codecs ¶
func Codecs(codecs ...securecookie.Codec) Option
Codecs uses the specified codecs to encrypt the cookie data
func HTTPOnly ¶
func HTTPOnly() Option
HTTPOnly sets the default session option HttpOnly; HTTP is all capped to satisfy golint
func SessionOptions ¶
SessionOptions allows the default session options to be specified in a single command
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides an implementation of the gorilla sessions.Store interface backed by DynamoDB